<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Templarios de San Oracle &#187; Servicios web</title>
	<atom:link href="http://www.tsoracle.com/wparchives/category/servicos-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tsoracle.com</link>
	<description>Diario de un Templario de San Oracle</description>
	<lastBuildDate>Wed, 30 Sep 2009 14:09:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
		<item>
		<title>Buenas pr&#225;cticas para dise&#241;o de servicios web</title>
		<link>http://www.tsoracle.com/wparchives/2009/06/18/buenas-prcticas-para-diseo-de-servicios-web/</link>
		<comments>http://www.tsoracle.com/wparchives/2009/06/18/buenas-prcticas-para-diseo-de-servicios-web/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 14:47:41 +0000</pubDate>
		<dc:creator>Sir Ragnar</dc:creator>
				<category><![CDATA[Servicios web]]></category>
		<category><![CDATA[buenas prácticas]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://www.tsoracle.com/?p=102</guid>
		<description><![CDATA[He visto en el blog de Julio C&#233;sar P&#233;rez que ha publicado un post completico dando algunas pautas sobre como hacer un buen dise&#241;o e implementaci&#243;n de un servicio web. Me lo apunto por si en el futuro tuviera que hacer alguno (no ser&#225; por falta de ganas).
]]></description>
			<content:encoded><![CDATA[<p>He visto en el blog de Julio C&eacute;sar P&eacute;rez que ha publicado un <a href="http://jcesarperez.blogspot.com/2009/06/buenas-practicas-para-desarrollar.html" title="Buenas practicas para desarrollar servicios web SOAP">post</a> completico dando algunas pautas sobre como hacer un buen dise&ntilde;o e implementaci&oacute;n de un servicio web. Me lo apunto por si en el futuro tuviera que hacer alguno (no ser&aacute; por falta de ganas).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsoracle.com/wparchives/2009/06/18/buenas-prcticas-para-diseo-de-servicios-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Llamar a servicio web desde pl/sql</title>
		<link>http://www.tsoracle.com/wparchives/2007/11/27/llamar-a-servicio-web-desde-plsql/</link>
		<comments>http://www.tsoracle.com/wparchives/2007/11/27/llamar-a-servicio-web-desde-plsql/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 19:29:30 +0000</pubDate>
		<dc:creator>Sir Ragnar</dc:creator>
				<category><![CDATA[Servicios web]]></category>
		<category><![CDATA[pl/sql]]></category>
		<category><![CDATA[service web]]></category>
		<category><![CDATA[soap]]></category>

		<guid isPermaLink="false">http://www.tsoracle.com/wparchives/2007/11/27/llamar-a-servicio-web-desde-plsql/</guid>
		<description><![CDATA[He le&#237;do hace poco un art&#237;culo antiguo (de 2006) para invocar un servicio web desde la base de datos con pl/sql. En principio lo que describe ha de funcionar desde una versi&#243;n Oracle 9i. El art&#237;culo pod&#233;is leerlo en Blogging About Oracle y hace una exposici&#243;n sencilla de los t&#233;rminos y de los inconvenientes a [...]]]></description>
			<content:encoded><![CDATA[<p>He le&iacute;do hace poco un art&iacute;culo antiguo (de 2006) para invocar un servicio web desde la base de datos con pl/sql. En principio lo que describe ha de funcionar desde una versi&oacute;n Oracle 9i. El art&iacute;culo pod&eacute;is leerlo en <a href="http://www.bloggingaboutoracle.org/archives/calling-web-services-from-plsql" title="Calling web services from PL/SQL" target="_blank">Blogging About Oracle</a> y hace una exposici&oacute;n sencilla de los t&eacute;rminos y de los inconvenientes a tener en cuenta a la hora de decidirse a hacer esto desde base de datos. <span id="more-83"></span>Hace referencia a su vez a un art&iacute;culo publicado por oracle que ya no existe. Ese art&iacute;culo es necesario porque incluye el c&oacute;digo del paquete <em>demo_soap</em> en el que se basan los ejemplos. He buscado el c&oacute;digo fuente y lo he encontrado en un post de los foros de Oracle: <a href="http://forums.oracle.com/forums/thread.jspa?messageID=1883208" title="OTN: Need Help in UTL_HTTP" target="_blank">Need Help in UTL_HTTP</a>. Por si desaparece o lo que sea, me he apuntado el c&oacute;digo fuente del paquete:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
</pre></td><td class="code"><pre class="plsql" style="font-family:monospace;"><span style="color: #00F;">CREATE</span> <span style="color: #00F;">OR</span> <span style="color: #000;">REPLACE</span> <span style="color: #00F;">PACKAGE</span> demo_soap <span style="color: #00F;">AS</span>
&nbsp;
  <span style="color: #080; font-style: italic;">/* A type to represent a SOAP RPC request */</span>
  <span style="color: #00F;">TYPE</span> request <span style="color: #00F;">IS</span> <span style="color: #00F;">RECORD</span> <span style="color: #00F;">&#40;</span>
    method <span style="color: #00F;">VARCHAR2</span> <span style="color: #00F;">&#40;</span><span style="color: #800;">256</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">,</span>
    namespace <span style="color: #00F;">VARCHAR2</span> <span style="color: #00F;">&#40;</span><span style="color: #800;">256</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">,</span>
    <span style="color: #00F;">BODY</span> <span style="color: #00F;">VARCHAR2</span> <span style="color: #00F;">&#40;</span><span style="color: #800;">32767</span><span style="color: #00F;">&#41;</span>
  <span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
&nbsp;
  <span style="color: #080; font-style: italic;">/* A type to represent a SOAP RPC response */</span>
  <span style="color: #00F;">TYPE</span> response <span style="color: #00F;">IS</span> <span style="color: #00F;">RECORD</span> <span style="color: #00F;">&#40;</span>
    doc XMLTYPE
  <span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
&nbsp;
  <span style="color: #080; font-style: italic;">/* * Create a new SOAP RPC request. */</span>
  <span style="color: #00F;">FUNCTION</span> new_request <span style="color: #00F;">&#40;</span>method <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span> namespace <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span>
  <span style="color: #00F;">RETURN</span> request<span style="color: #00F;">;</span> 
&nbsp;
  <span style="color: #080; font-style: italic;">/* * Add a simple parameter to the SOAP RPC request. */</span>
  <span style="color: #00F;">PROCEDURE</span> ADD_PARAMETER <span style="color: #00F;">&#40;</span>
    req   <span style="color: #00F;">IN</span> <span style="color: #00F;">OUT</span> <span style="color: #00F;">NOCOPY</span> request<span style="color: #00F;">,</span>
    NAME  <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span>
    <span style="color: #00F;">TYPE</span>  <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span>
    <span style="color: #000;">VALUE</span> <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span>
  <span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> <span style="color: #080; font-style: italic;">/* * Make the SOAP RPC call. */</span>
&nbsp;
  <span style="color: #00F;">FUNCTION</span> invoke <span style="color: #00F;">&#40;</span>
    req    <span style="color: #00F;">IN</span> <span style="color: #00F;">OUT</span> <span style="color: #00F;">NOCOPY</span> request<span style="color: #00F;">,</span>
    url    <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span>
    action <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span>
  <span style="color: #00F;">&#41;</span>
&nbsp;
  <span style="color: #00F;">RETURN</span> response<span style="color: #00F;">;</span> <span style="color: #080; font-style: italic;">/*
  * Retrieve the sipmle return value of the SOAP RPC call. */</span>
&nbsp;
  <span style="color: #00F;">FUNCTION</span> get_return_value <span style="color: #00F;">&#40;</span>
    resp      <span style="color: #00F;">IN</span> <span style="color: #00F;">OUT</span> <span style="color: #00F;">NOCOPY</span> response<span style="color: #00F;">,</span>
    NAME      <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span>
    namespace <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span>
  <span style="color: #00F;">&#41;</span>
  <span style="color: #00F;">RETURN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">;</span>
<span style="color: #00F;">END</span><span style="color: #00F;">;</span>
<span style="color: #00F;">/</span>
SHOW ERRORS
<span style="color: #00F;">CREATE</span> <span style="color: #00F;">OR</span> <span style="color: #000;">REPLACE</span> <span style="color: #00F;">PACKAGE</span> <span style="color: #00F;">BODY</span> demo_soap <span style="color: #00F;">AS</span>
&nbsp;
  <span style="color: #00F;">FUNCTION</span> new_request<span style="color: #00F;">&#40;</span>
             method <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span> 
             namespace <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span>
  <span style="color: #00F;">RETURN</span> request <span style="color: #00F;">AS</span> 
    req request<span style="color: #00F;">;</span> 
  <span style="color: #00F;">BEGIN</span> 
    req<span style="color: #00F;">.</span>method <span style="color: #00F;">:=</span> method<span style="color: #00F;">;</span> 
    req<span style="color: #00F;">.</span>namespace <span style="color: #00F;">:=</span> namespace<span style="color: #00F;">;</span>
&nbsp;
    <span style="color: #00F;">RETURN</span> req<span style="color: #00F;">;</span>
  <span style="color: #00F;">END</span><span style="color: #00F;">;</span>
&nbsp;
  <span style="color: #00F;">PROCEDURE</span> add_parameter<span style="color: #00F;">&#40;</span>
              req <span style="color: #00F;">IN</span> <span style="color: #00F;">OUT</span> <span style="color: #00F;">NOCOPY</span> request<span style="color: #00F;">,</span>
              name <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span> 
              <span style="color: #00F;">TYPE</span> <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span> 
              <span style="color: #000;">VALUE</span> <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span>
  <span style="color: #00F;">AS</span> 
  <span style="color: #00F;">BEGIN</span> 
    req<span style="color: #00F;">.</span><span style="color: #00F;">BODY</span> <span style="color: #00F;">:=</span> req<span style="color: #00F;">.</span><span style="color: #00F;">BODY</span> <span style="color: #00F;">||</span>
    <span style="color: #F00;">'&lt;'</span><span style="color: #00F;">||</span>name<span style="color: #00F;">||</span><span style="color: #F00;">' xsi:type=&quot;'</span><span style="color: #00F;">||</span>type<span style="color: #00F;">||</span><span style="color: #F00;">'&quot;&gt;'</span><span style="color: #00F;">||</span>value<span style="color: #00F;">||</span><span style="color: #F00;">'&lt;/'</span><span style="color: #00F;">||</span>name<span style="color: #00F;">||</span><span style="color: #F00;">'&gt;'</span><span style="color: #00F;">;</span>
  <span style="color: #00F;">END</span><span style="color: #00F;">;</span>
&nbsp;
  <span style="color: #00F;">PROCEDURE</span> generate_envelope<span style="color: #00F;">&#40;</span>
              req <span style="color: #00F;">IN</span> <span style="color: #00F;">OUT</span> <span style="color: #00F;">NOCOPY</span> request<span style="color: #00F;">,</span> 
              env <span style="color: #00F;">IN</span> <span style="color: #00F;">OUT</span> <span style="color: #00F;">NOCOPY</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span>
  <span style="color: #00F;">AS</span> 
  <span style="color: #00F;">BEGIN</span> 
    env <span style="color: #00F;">:=</span> <span style="color: #F00;">'&lt;SOAP-ENV:Envelope 
    xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
&nbsp;
    xmlns:xsi=&quot;http://www.w3.org/1999/XMLSchema-instance&quot; 
    xmlns:xsd=&quot;http://www.w3.org/1999/XMLSchema&quot;&gt;
&nbsp;
    &lt;SOAP-ENV:Body&gt;&lt;'</span><span style="color: #00F;">||</span>req<span style="color: #00F;">.</span>method<span style="color: #00F;">||</span><span style="color: #F00;">' '</span><span style="color: #00F;">||</span>req<span style="color: #00F;">.</span>namespace<span style="color: #00F;">||</span><span style="color: #F00;">' 
    SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;'</span><span style="color: #00F;">||</span>
    req<span style="color: #00F;">.</span><span style="color: #00F;">BODY</span><span style="color: #00F;">||</span><span style="color: #F00;">'&lt;/'</span><span style="color: #00F;">||</span>req<span style="color: #00F;">.</span>method<span style="color: #00F;">||</span><span style="color: #F00;">'&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;'</span><span style="color: #00F;">;</span> 
  <span style="color: #00F;">END</span><span style="color: #00F;">;</span>
&nbsp;
  <span style="color: #00F;">PROCEDURE</span> show_envelope<span style="color: #00F;">&#40;</span>env <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span>  <span style="color: #00F;">AS</span> 
    i <span style="color: #00F;">PLS_INTEGER</span><span style="color: #00F;">;</span> 
    len <span style="color: #00F;">PLS_INTEGER</span><span style="color: #00F;">;</span> 
  <span style="color: #00F;">BEGIN</span> 
    i <span style="color: #00F;">:=</span> <span style="color: #800;">1</span><span style="color: #00F;">;</span> len<span style="color: #00F;">:=</span> <span style="color: #000;">LENGTH</span><span style="color: #00F;">&#40;</span>env<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    <span style="color: #00F;">WHILE</span> <span style="color: #00F;">&#40;</span>i <span style="color: #00F;">&lt;=</span> len<span style="color: #00F;">&#41;</span> <span style="color: #00F;">LOOP</span> 
      <span style="color: #00F;">DBMS_OUTPUT</span><span style="color: #00F;">.</span>put_line<span style="color: #00F;">&#40;</span><span style="color: #000;">SUBSTR</span><span style="color: #00F;">&#40;</span>env<span style="color: #00F;">,</span> i<span style="color: #00F;">,</span> <span style="color: #800;">60</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
      i <span style="color: #00F;">:=</span> i <span style="color: #00F;">+</span> <span style="color: #800;">60</span><span style="color: #00F;">;</span>
    <span style="color: #00F;">END</span> <span style="color: #00F;">LOOP</span><span style="color: #00F;">;</span>
  <span style="color: #00F;">END</span><span style="color: #00F;">;</span>
&nbsp;
  <span style="color: #00F;">PROCEDURE</span> check_fault<span style="color: #00F;">&#40;</span>resp <span style="color: #00F;">IN</span> <span style="color: #00F;">OUT</span> <span style="color: #00F;">NOCOPY</span> response<span style="color: #00F;">&#41;</span> <span style="color: #00F;">AS</span> 
    fault_node xmltype<span style="color: #00F;">;</span> 
    fault_code <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#40;</span><span style="color: #800;">256</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    fault_string <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#40;</span><span style="color: #800;">32767</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
  <span style="color: #00F;">BEGIN</span> 
    fault_node <span style="color: #00F;">:=</span> resp<span style="color: #00F;">.</span>doc<span style="color: #00F;">.</span><span style="color: #000;">EXTRACT</span><span style="color: #00F;">&#40;</span><span style="color: #F00;">'/soap:Fault'</span><span style="color: #00F;">,</span> <span style="color: #F00;">'xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    <span style="color: #00F;">IF</span> <span style="color: #00F;">&#40;</span>fault_node <span style="color: #00F;">IS</span> <span style="color: #00F;">NOT</span> <span style="color: #00F;">NULL</span><span style="color: #00F;">&#41;</span> <span style="color: #00F;">THEN</span> 
      fault_code <span style="color: #00F;">:=</span> fault_node<span style="color: #00F;">.</span><span style="color: #000;">EXTRACT</span><span style="color: #00F;">&#40;</span><span style="color: #F00;">'/soap:Fault/faultcode/child::text()'</span><span style="color: #00F;">,</span> <span style="color: #F00;">'xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">.</span>getstringval<span style="color: #00F;">&#40;</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
      fault_string <span style="color: #00F;">:=</span> fault_node<span style="color: #00F;">.</span><span style="color: #000;">EXTRACT</span><span style="color: #00F;">&#40;</span><span style="color: #F00;">'/soap:Fault/faultstring/child::text()'</span><span style="color: #00F;">,</span> <span style="color: #F00;">'xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">.</span>getstringval<span style="color: #00F;">&#40;</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
      raise_application_error<span style="color: #00F;">&#40;</span><span style="color: #00F;">-</span><span style="color: #800;">20000</span><span style="color: #00F;">,</span> fault_code <span style="color: #00F;">||</span> <span style="color: #F00;">' - '</span> <span style="color: #00F;">||</span> fault_string<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
    <span style="color: #00F;">END</span> <span style="color: #00F;">IF</span><span style="color: #00F;">;</span>
  <span style="color: #00F;">END</span><span style="color: #00F;">;</span>
&nbsp;
  <span style="color: #00F;">FUNCTION</span> invoke<span style="color: #00F;">&#40;</span>req <span style="color: #00F;">IN</span> <span style="color: #00F;">OUT</span> <span style="color: #00F;">NOCOPY</span> request<span style="color: #00F;">,</span> 
    url <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span> 
    action <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span> 
  <span style="color: #00F;">RETURN</span> response <span style="color: #00F;">AS</span> 
    env <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#40;</span><span style="color: #800;">32767</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    http_req <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>req<span style="color: #00F;">;</span> 
    http_resp <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>resp<span style="color: #00F;">;</span>
    resp response<span style="color: #00F;">;</span> 
  <span style="color: #00F;">BEGIN</span> 
    generate_envelope<span style="color: #00F;">&#40;</span>req<span style="color: #00F;">,</span> env<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> <span style="color: #080; font-style: italic;">-- show_envelope(env); </span>
    http_req <span style="color: #00F;">:=</span> <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>begin_request<span style="color: #00F;">&#40;</span>url<span style="color: #00F;">,</span> <span style="color: #F00;">'POST'</span><span style="color: #00F;">,</span><span style="color: #F00;">'HTTP/1.0'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
    <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>SET_AUTHENTICATION <span style="color: #00F;">&#40;</span>HTTP_REQ<span style="color: #00F;">,</span> <span style="color: #F00;">'G016D01/S0162114'</span><span style="color: #00F;">,</span><span style="color: #F00;">'Xenios02'</span><span style="color: #00F;">,</span> <span style="color: #F00;">'Basic'</span><span style="color: #00F;">,</span><span style="color: #00F;">TRUE</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>set_header<span style="color: #00F;">&#40;</span>http_req<span style="color: #00F;">,</span> <span style="color: #F00;">'Content-Type'</span><span style="color: #00F;">,</span> <span style="color: #F00;">'text/xml'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
    <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>set_header<span style="color: #00F;">&#40;</span>http_req<span style="color: #00F;">,</span><span style="color: #F00;">'Content-Length'</span><span style="color: #00F;">,</span> <span style="color: #000;">LENGTH</span><span style="color: #00F;">&#40;</span>env<span style="color: #00F;">&#41;</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>set_header<span style="color: #00F;">&#40;</span>http_req<span style="color: #00F;">,</span> <span style="color: #F00;">'SOAPAction'</span><span style="color: #00F;">,</span> action<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>write_text<span style="color: #00F;">&#40;</span>http_req<span style="color: #00F;">,</span>env<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    http_resp <span style="color: #00F;">:=</span> <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>get_response<span style="color: #00F;">&#40;</span>http_req<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>read_text<span style="color: #00F;">&#40;</span>http_resp<span style="color: #00F;">,</span> env<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>end_response<span style="color: #00F;">&#40;</span>http_resp<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
    resp<span style="color: #00F;">.</span>doc <span style="color: #00F;">:=</span> xmltype<span style="color: #00F;">.</span>createxml<span style="color: #00F;">&#40;</span>env<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    resp<span style="color: #00F;">.</span>doc <span style="color: #00F;">:=</span> resp<span style="color: #00F;">.</span>doc<span style="color: #00F;">.</span><span style="color: #000;">EXTRACT</span><span style="color: #00F;">&#40;</span><span style="color: #F00;">'/soap:Envelope/soap:Body/child::node()'</span><span style="color: #00F;">,</span>
    <span style="color: #F00;">'xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> <span style="color: #080; font-style: italic;">-- show_envelope(resp.doc.getstringval());</span>
    check_fault<span style="color: #00F;">&#40;</span>resp<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span> 
    <span style="color: #00F;">RETURN</span> resp<span style="color: #00F;">;</span> 
  <span style="color: #00F;">END</span><span style="color: #00F;">;</span> 
&nbsp;
  <span style="color: #00F;">FUNCTION</span> get_return_value<span style="color: #00F;">&#40;</span>
            resp <span style="color: #00F;">IN</span> <span style="color: #00F;">OUT</span> <span style="color: #00F;">NOCOPY</span> response<span style="color: #00F;">,</span>
            name <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">,</span>
            namespace <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span>
  <span style="color: #00F;">RETURN</span> <span style="color: #00F;">VARCHAR2</span> <span style="color: #00F;">AS</span> 
  <span style="color: #00F;">BEGIN</span> 
    <span style="color: #00F;">RETURN</span> resp<span style="color: #00F;">.</span>doc<span style="color: #00F;">.</span><span style="color: #000;">EXTRACT</span><span style="color: #00F;">&#40;</span><span style="color: #F00;">'//'</span><span style="color: #00F;">||</span>name<span style="color: #00F;">||</span><span style="color: #F00;">'/child::text()'</span><span style="color: #00F;">,</span>namespace<span style="color: #00F;">&#41;</span><span style="color: #00F;">.</span>getstringval<span style="color: #00F;">&#40;</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
  <span style="color: #00F;">END</span><span style="color: #00F;">;</span>
&nbsp;
<span style="color: #00F;">END</span><span style="color: #00F;">;</span>
<span style="color: #00F;">/</span>
SHOW ERRORS</pre></td></tr></table></div>

<p>Y tambi&eacute;n me he apuntado el c&oacute;digo de ejemplo de una llamada a un servicio web que a&uacute;n est&aacute; vivo y que pide la hora de un <em>Zip code</em>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="plsql" style="font-family:monospace;"><span style="color: #00F;">CREATE</span> <span style="color: #00F;">OR</span> <span style="color: #000;">REPLACE</span> <span style="color: #00F;">PACKAGE</span> time_service <span style="color: #00F;">AS</span>
  <span style="color: #00F;">FUNCTION</span> get_local_time<span style="color: #00F;">&#40;</span>zipcode <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span> <span style="color: #00F;">RETURN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">;</span>
<span style="color: #00F;">END</span><span style="color: #00F;">;</span>
<span style="color: #00F;">/</span>
SHOW ERRORS
<span style="color: #00F;">CREATE</span> <span style="color: #00F;">OR</span> <span style="color: #000;">REPLACE</span> <span style="color: #00F;">PACKAGE</span> <span style="color: #00F;">BODY</span> time_service <span style="color: #00F;">AS</span> 
  <span style="color: #080; font-style: italic;">-- Location of Web service definition</span>
  <span style="color: #080; font-style: italic;">-- http://www.ripedev.com/webservices/LocalTime.asmx?WSDL</span>
  <span style="color: #00F;">FUNCTION</span> get_local_time<span style="color: #00F;">&#40;</span>zipcode <span style="color: #00F;">IN</span> <span style="color: #00F;">VARCHAR2</span><span style="color: #00F;">&#41;</span> <span style="color: #00F;">RETURN</span> <span style="color: #00F;">VARCHAR2</span> <span style="color: #00F;">IS</span>
    req demo_soap<span style="color: #00F;">.</span>request<span style="color: #00F;">;</span>
    resp demo_soap<span style="color: #00F;">.</span>response<span style="color: #00F;">;</span>
  <span style="color: #00F;">BEGIN</span>
    req <span style="color: #00F;">:=</span> demo_soap<span style="color: #00F;">.</span>new_request<span style="color: #00F;">&#40;</span><span style="color: #F00;">'LocalTimeByZipCode'</span><span style="color: #00F;">,</span>
    <span style="color: #F00;">'xmlns=&quot;http://ripedev.com/xsd/ZipCodeResults.xsd&quot;'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
    demo_soap<span style="color: #00F;">.</span>add_parameter<span style="color: #00F;">&#40;</span>req<span style="color: #00F;">,</span> <span style="color: #F00;">'ZipCode'</span><span style="color: #00F;">,</span> <span style="color: #F00;">'xsd:string'</span><span style="color: #00F;">,</span> zipcode<span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
    resp <span style="color: #00F;">:=</span> demo_soap<span style="color: #00F;">.</span>invoke<span style="color: #00F;">&#40;</span>req<span style="color: #00F;">,</span>
    <span style="color: #F00;">'http://www.ripedev.com/webservices/LocalTime.asmx'</span><span style="color: #00F;">,</span>
    <span style="color: #F00;">'http://ripedev.com/xsd/ZipCodeResults.xsd/LocalTimeByZipCode'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
    <span style="color: #00F;">RETURN</span> demo_soap<span style="color: #00F;">.</span>get_return_value<span style="color: #00F;">&#40;</span>resp<span style="color: #00F;">,</span> <span style="color: #F00;">'LocalTimeByZipCodeResult'</span><span style="color: #00F;">,</span>
    <span style="color: #F00;">'xmlns=&quot;http://ripedev.com/xsd/ZipCodeResults.xsd&quot;'</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
  <span style="color: #00F;">END</span><span style="color: #00F;">;</span>
&nbsp;
<span style="color: #00F;">BEGIN</span>
  <span style="color: #080; font-style: italic;">/*
  * Since the Web service resides outside of the firewall, we need to set
  * the proxy in the current session before invoking the service.
  */</span>
  <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>set_proxy<span style="color: #00F;">&#40;</span><span style="color: #F00;">'proxy.xxx.com'</span><span style="color: #00F;">,</span> <span style="color: #00F;">NULL</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
  <span style="color: #00F;">UTL_HTTP</span><span style="color: #00F;">.</span>set_persistent_conn_support<span style="color: #00F;">&#40;</span><span style="color: #00F;">TRUE</span><span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
<span style="color: #00F;">END</span><span style="color: #00F;">;</span>
<span style="color: #00F;">/</span>
SHOW ERRORS</pre></td></tr></table></div>

<p>He hecho una prueba sencilla me ha funcionado:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="plsql" style="font-family:monospace;"><span style="color: #00F;">SET</span> SERVEROUTPUT <span style="color: #00F;">ON</span>
<span style="color: #00F;">SET</span> TIMING <span style="color: #00F;">ON</span>
<span style="color: #00F;">BEGIN</span>
  <span style="color: #080; font-style: italic;">-- He buscado un zip code en http://zip4.usps.com</span>
  <span style="color: #00F;">DBMS_OUTPUT</span><span style="color: #00F;">.</span>PUT_LINE<span style="color: #00F;">&#40;</span><span style="color: #F00;">'Hora local de KANSAS CITY'</span> <span style="color: #00F;">||</span> time_service<span style="color: #00F;">.</span>get_local_time<span style="color: #00F;">&#40;</span><span style="color: #F00;">'64101'</span><span style="color: #00F;">&#41;</span> <span style="color: #00F;">&#41;</span><span style="color: #00F;">;</span>
<span style="color: #00F;">END</span><span style="color: #00F;">;</span>
<span style="color: #00F;">/</span>
&nbsp;
Hora local <span style="color: #800;">11</span><span style="color: #00F;">/</span><span style="color: #800;">27</span><span style="color: #00F;">/</span><span style="color: #800;">2007</span> <span style="color: #800;">6</span><span style="color: #00F;">:</span><span style="color: #800;">48</span><span style="color: #00F;">:</span><span style="color: #800;">20</span> AM
&nbsp;
Procedimiento PL<span style="color: #00F;">/</span><span style="color: #00F;">SQL</span> terminado correctamente<span style="color: #00F;">.</span>
&nbsp;
Transcurrido<span style="color: #00F;">:</span> 00<span style="color: #00F;">:</span>00<span style="color: #00F;">:</span><span style="color: #800;">00.44</span></pre></td></tr></table></div>

<p>Tampoco he investigado mucho m&aacute;s y no s&eacute; si actualmente es la manera m&aacute;s id&oacute;nea. Desde luego se me antoja algo cutrecillo para los tiempos en los que vivimos. Igual en la 10g hay ya algo super chulo que puede invocar servicios web desde pl/sql.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsoracle.com/wparchives/2007/11/27/llamar-a-servicio-web-desde-plsql/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Servicio web con tipos complejos en ADF</title>
		<link>http://www.tsoracle.com/wparchives/2007/07/30/servicio-web-con-tipos-complejos-en-adf/</link>
		<comments>http://www.tsoracle.com/wparchives/2007/07/30/servicio-web-con-tipos-complejos-en-adf/#comments</comments>
		<pubDate>Mon, 30 Jul 2007 14:05:38 +0000</pubDate>
		<dc:creator>Sir Ragnar</dc:creator>
				<category><![CDATA[ADF, Jdeveloper]]></category>
		<category><![CDATA[Servicios web]]></category>

		<guid isPermaLink="false">http://www.tsoracle.com/wparchives/2007/07/30/servicio-web-con-tipos-complejos-en-adf/</guid>
		<description><![CDATA[Oracle ha publicado recientemente un art&#237;cuo de Frank sobre c&#243;mo implementar con ADF un servicio web que devuelva tipos complejos: Using Web Services with Complex Return Types in ADF.
]]></description>
			<content:encoded><![CDATA[<p>Oracle ha publicado recientemente un art&iacute;cuo de Frank sobre c&oacute;mo implementar con ADF un servicio web que devuelva tipos complejos: <a href="http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html" target="_blank" title="Using Web Services with Complex Return Types in ADF">Using Web Services with Complex Return Types in ADF</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsoracle.com/wparchives/2007/07/30/servicio-web-con-tipos-complejos-en-adf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Web Services nativos en Oracle 11g</title>
		<link>http://www.tsoracle.com/wparchives/2007/07/18/web-services-nativos-en-oracle-11g/</link>
		<comments>http://www.tsoracle.com/wparchives/2007/07/18/web-services-nativos-en-oracle-11g/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 16:43:10 +0000</pubDate>
		<dc:creator>Sir Ragnar</dc:creator>
				<category><![CDATA[Servicios web]]></category>

		<guid isPermaLink="false">http://www.tsoracle.com/wparchives/2007/07/18/web-services-nativos-en-oracle-11g/</guid>
		<description><![CDATA[Parece ser que en la versi&#243;n de Oracle 11g ser&#225; posible publicar el c&#243;digo pl/sql como servicio web sin tener que hacerlo a trav&#233;s de ning&#250;n servidor de aplicaciones. Una de las cosas que m&#225;s me tiran para atr&#225;s a la hora de publicar c&#243;digo pl/sql son los wrapper que me crea jdeveloper. Con esta [...]]]></description>
			<content:encoded><![CDATA[<p>Parece ser que en la versi&oacute;n de Oracle 11g ser&aacute; posible publicar el c&oacute;digo pl/sql como servicio web sin tener que hacerlo a trav&eacute;s de ning&uacute;n servidor de aplicaciones. Una de las cosas que m&aacute;s me tiran para atr&aacute;s a la hora de publicar c&oacute;digo pl/sql son los wrapper que me crea jdeveloper. Con esta nueva soluci&oacute;n, ya no ser&aacute; necesario todo ese engorro. &Eacute;ste es el art&iacute;culo donde lo he le&iacute;do: <a href="http://inside-apex.blogspot.com/2007/07/oracle-11g-native-web-services.html" target="_blank" title="Oracle 11g: Native Web Services">Oracle 11g: Native Web Services</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsoracle.com/wparchives/2007/07/18/web-services-nativos-en-oracle-11g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Servicios web (5.1): poniendo Jdeveloper a punto con Axis(I)</title>
		<link>http://www.tsoracle.com/wparchives/2007/07/10/servicios-web-51-poniendo-jdeveloper-a-punto-con-axis/</link>
		<comments>http://www.tsoracle.com/wparchives/2007/07/10/servicios-web-51-poniendo-jdeveloper-a-punto-con-axis/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 17:37:30 +0000</pubDate>
		<dc:creator>Sir Ragnar</dc:creator>
				<category><![CDATA[ADF, Jdeveloper]]></category>
		<category><![CDATA[Servicios web]]></category>

		<guid isPermaLink="false">http://www.tsoracle.com/wparchives/2007/07/10/servicios-web-51-poniendo-jdeveloper-a-punto-con-axis/</guid>
		<description><![CDATA[Actualmente necesito desplegar una serie de web services en una aplicaci&#243;n que corre sobre Tomcat 5.x . Para los servicios web estoy probando Axis. Como utilizo Jdeveloper para el desarrollo java y paso de instalarme el eclipse, he instalado y configurado un proyecto para desplegar estos servicios.

Afortunadamente otras personas ya se han enfrentado a este [...]]]></description>
			<content:encoded><![CDATA[<p>Actualmente necesito desplegar una serie de web services en una aplicaci&oacute;n que corre sobre Tomcat 5.x . Para los servicios web estoy probando <a target="_blank" href="http://ws.apache.org/axis/index.html" title="WebServices - Axis">Axis</a>. Como utilizo Jdeveloper para el desarrollo java y paso de instalarme el eclipse, he instalado y configurado un proyecto para desplegar estos servicios.<br />
<span id="more-34"></span><br />
Afortunadamente otras personas ya se han enfrentado a este problema antes. En el <a target="_blank" href="http://deigote.com/blog/" title="blog de deigote">blog de deigote</a> hay una serie de art&iacute;culos donde describe con encomiable exactitud todos los pasos que ha ido siguiendo:</p>
<ul>
<li><a target="_blank" href="http://deigote.com/blog/2006/06/12/servicios-web-1-instalando-tomcat-y-axis/" title="Servicios web (1): Instalando Tomcat y Axis">Servicios web (1): Instalando Tomcat y Axis</a></li>
<li><a target="_blank" href="http://deigote.com/blog/2006/06/12/servicios-web-2-desplegando-un-servicio-jws/" title="Servicios web (2): Desplegando un servicio JWS">Servicios web (2): Desplegando un servicio JWS</a></li>
<li><a target="_blank" href="http://deigote.com/blog/2006/06/12/servicios-web-3-desplegando-un-servicio-wdss/" title="Servicios web (3): Desplegando un servicio WDSS">Servicios web (3): Desplegando un servicio WDSS</a></li>
<li><a target="_blank" href="http://deigote.com/blog/2006/06/15/servicios-web-4-instalando-postgresql-y-jdbc/" title="Servicios web (4): Instalando PostgreSQL y JDBC">Servicios web (4): Instalando PostgreSQL y JDBC</a></li>
<li><a target="_blank" href="http://deigote.com/blog/2006/06/16/servicios-web-5-poniendo-eclipse-a-punto/" title="Servicios web (5): Poniendo Eclipse a punto">Servicios web (5): Poniendo Eclipse a punto</a></li>
</ul>
<p>Si sientes miedo de los web services y te parece que te va a costar diox y ayuda implementarlos te aconsejo que le eches un vistazo a la serie porque hace que parezca tan f&aacute;cil como es.</p>
<h3>Descargando los binarios de Axis</h3>
<p>Lo primero es ir a la p&aacute;gina de Axis y bajarse la versi&oacute;n que consider&eacute;is oportuna. Yo he bajado la 1.4 (<a target="_blank" href="http://people.apache.org/dist/axis/nightly/" title="Directorio de descargas de axis">axis-bin-1_4.zip</a>). Deber&iacute;amos descomprimir el fichero en al&uacute;n directorio m&aacute;s o menos permanente. Pongamos por ejemplo <em>C:\jdevlibs\axis</em>.</p>
<h3>Crear el worksapace y su proyecto en Jdeveloper</h3>
<p>Vamos a crear una nueva application con su proyecto.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/wp-content/uploads/2007/06/wsaxis1.gif" title="Nueva aplicaci&oacute;n"><img border="0" src="http://www.tsoracle.com/wp-content/uploads/2007/06/wsaxis1t.gif" /></a></p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/wp-content/uploads/2007/06/wsaxis2.gif" title="Nuevo proyecto"><img border="0" src="http://www.tsoracle.com/wp-content/uploads/2007/06/wsaxis2.gif" /></a></p>
<p>En mi caso, los servicios web van a convivir en el mismo contexto con p&aacute;ginas JSF. Por tanto, selecciono en el <em>Application Navigator</em> el proyecto, bot&oacute;n derecho, propiedades y me voy al nodo <em>Technology Scope</em>. Lo configuro para que abarque <em>HTML, java, JSF, y JSP and Servlets&#8221;</em>.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/02-wsaxis-technology-scope.gif" title="Technology Scope"><img border="0" src="http://www.tsoracle.com/img/wsaxis/02-wsaxis-technology-scope.t.gif" /></a></p>
<p>Configuro tambi&eacute;n el nodo <em>J2EE Application</em> para que se despliegue en un contexto al que le he dado el nombre de <em>wsaxis</em>.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/wp-content/uploads/2007/07/waxis5.gif" title="Nombrando el contexto"><img border="0" src="http://www.tsoracle.com/wp-content/uploads/2007/07/waxis5t.gif" /></a></p>
<p>La estructura del proyecto en el <em>Application Navigator</em> debe haber quedado as&iacute;:</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/03-arbol.gif" title="&Aacute;rbol de estructura"><img border="0" src="http://www.tsoracle.com/img/wsaxis/03-arbol.gif" /></a></p>
<p>En este punto, lo mejor es comprobar que si creo una p&aacute;gina jsf funciona. As&iacute;, si luego peta algo, podremos estar seguros de que en el <em>Application Navigator</em> selecciono el proyecto, bot&oacute;n derecho, <em>Open JSF Navigation</em>. Arrastramos de la paleta de componentes una p&aacute;gina JSF y la llamamos <em>/prueba.jsp</em>.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/04-prueba.jsp.warning.gif" title="/prueba.jsp"><img border="0" src="http://www.tsoracle.com/img/wsaxis/04-prueba.jsp.warning.gif" /></a></p>
<p>Le hacemos doble click y vamos haciendo avanzar el asistente de creaci&oacute;n con <em>siguiente-siguiente</em>. Luego le colocamos por ejemplo un <em>Output Text</em> de la paleta de <em>JSF HTML</em> y le ponemos un texto cualquiera.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/05-prueba.jsp.llena.gif" title="Contenido de /prueba.jsp"><img border="0" src="http://www.tsoracle.com/img/wsaxis/05-prueba.jsp.llena.gif" /></a></p>
<p>Ahora pulsamos con el bot&oacute;n derecho sobre la p&aacute;gina de prueba y le damos a <em>Run</em>.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/06-prueba.jsp.run.gif" title="Ejecutando /prueba.jsp"><img border="0" src="http://www.tsoracle.com/img/wsaxis/06-prueba.jsp.run.gif" /></a></p>
<p>Deber&iacute;amos obtener un resultado como &eacute;ste o significar&aacute; que hemos hecho algo mal:</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/07-prueba.jsp.run.gif" title="Resultado de ejecutar /prueba.jsp"><img border="0" src="http://www.tsoracle.com/img/wsaxis/07-prueba.jsp.run.t.gif" /></a></p>
<h3>Agregar la funcionalidad de axis</h3>
<p>Ahora debemos descomprimir el archivo zip de la versi&oacute;n de axis que hayamos descargado a un directorio no temporal. Hay que tener en cuenta que vamos a registrar en JDeveloper las librer&iacute;as y no deber&iacute;amos moverlas despu&eacute;s de haberlo hecho o no las podr&aacute; encontrar despu&eacute;s.<br />
Una vez descomprimidas, copiamos todo el contenido de la carpeta <em>&lt;axis&gt;/lib</em> a la carpeta <em>/public_html/WEB-INF/lib</em> de nuestro proyecto.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/08-copiar-lib-axis.gif" title="Copiar librer&iacute;as de axis"><img border="0" src="http://www.tsoracle.com/img/wsaxis/08-copiar-lib-axis.gif" /></a><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/09-copiar-lib-axis.gif" title="Copiar librer&iacute;as de axis"><img border="0" src="http://www.tsoracle.com/img/wsaxis/09-copiar-lib-axis.gif" /></a></p>
<p>Despu&eacute;s copiamos los ficheros(que no los direcotorios) de la carpeta  <em>&lt;axis&gt;/webapps/axis</em> a la carpeta public_html del proyecto.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/10-copiar-webapp-axis.gif" title="Copiar servlets y p&aacute;ginas de axis"><img border="0" src="http://www.tsoracle.com/img/wsaxis/10-copiar-webapp-axis.gif"  /></a><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/11-copiar-webapp-axis.gif" title="Copiar servlets y p&aacute;ginas de axis"><img border="0" src="http://www.tsoracle.com/img/wsaxis/11-copiar-webapp-axis.gif" /></a></p>
<p>Ahora el fichero <em>&lt;axis&gt;/webapps/axis/WEB-INF/users.lst</em> a la carpeta <em>public_html/WEB-INF</em> del proyecto.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/12-copiar-users-axis.gif" title="Copiar servlets y p&aacute;ginas de axis"><img border="0" src="http://www.tsoracle.com/img/wsaxis/12-copiar-users-axis.gif"/></a><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/13-copiar-users-axis.gif" title="Copiar servlets y p&aacute;ginas de axis"><img border="0" src="http://www.tsoracle.com/img/wsaxis/13-copiar-users-axis.gif" /></a></p>
<p>Para que no nos pase como al amigo Deigote, copiaremos tambi&eacute;n los ficheros de propiedades necesarios. Para ello crearemos una carpeta <em>src</em> en la carpeta de nuestro proyecto.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/13-1-crear-src-axis.gif" title="Crear carpeta src"><img border="0" src="http://www.tsoracle.com/img/wsaxis/13-1-crear-src-axis.gif" /></a></p>
<p>A esta carpeta debemos copiar el fichero <em>&lt;axis&gt;/lib/log4j.properties</em> y los ficheros <em>i18n.properties</em> y <em>i18n_ja.properties</em> de la carpeta <em>&lt;axis&gt;/webapps/axis/WEB-INF/classes</em> a la nueva carpeta <em>src</em>.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/13-2-copiar-properties-axis.gif" title="Copiar ficheros de propiedades"><img border="0" src="http://www.tsoracle.com/img/wsaxis/13-2-copiar-properties-axis.gif"/></a><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/13-3-copiar-properties-axis.gif" title="CCopiar ficheros de propiedades"><img border="0" src="http://www.tsoracle.com/img/wsaxis/13-3-copiar-properties-axis.gif" /></a></p>
<p>Es necesario agregar las librer&iacute;as de axis a la lista de las que dispone jdeveloper. Para ello, vamos a las propiedades del proyecto y le damos al bot&oacute;n <em>Add Li<u>b</u>rary</em>.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/14-agregar-lib-axis.gif" title="Libraries del proyecto"><img border="0" src="http://www.tsoracle.com/img/wsaxis/14-agregar-lib-axis.t.gif" /></a></p>
<p>En el di&aacute;logo que se abre hay que agregar al nodo <em>Class Path</em> el contenido de la carpeta <em>&lt;axis&gt;/lib</em>. Ya, si queremos rizar el rizo, al nodo <em>Doc Path</em> le podemos agregar la carpeta <em>&lt;axis&gt;/doc</em>. Como s&oacute;lo nos hemos descargado los binarios, tendremos que dejar el nodo <em>Source Path</em> vac&iacute;o.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/15-agregar-lib-axis.gif" title="Nueva librer&iacute;a"><img border="0" src="http://www.tsoracle.com/img/wsaxis/15-agregar-lib-axis.gif" /></a></p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/16-seleccionar-lib-axis.gif" title="Seleccionar jars de axis"><img border="0" src="http://www.tsoracle.com/img/wsaxis/16-seleccionar-lib-axis.gif" /></a></p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/17-lib-creada-axis.gif" title="Jars y documentos agregados"><img border="0" src="http://www.tsoracle.com/img/wsaxis/17-lib-creada-axis.gif" /></a></p>
<p>Despu&eacute;s de crear la librer&iacute;a la seleccionamos y aceptamos.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/18-seleccionar-nueva-lib-axis.gif" title="Seleccionar librer&iacute;a de axis"><img border="0" src="http://www.tsoracle.com/img/wsaxis/18-seleccionar-nueva-lib-axis.gif" /></a></p>
<p>El nodo <em>Libraries</em> del proyecto debe haber quedado m&aacute;s o menos as&iacute;:</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/19-libraries-axis.gif" title="Nodo libraries tras agregar las librer&iacute;as de axis"><img border="0" src="http://www.tsoracle.com/img/wsaxis/19-libraries-axis.t.gif" /></a></p>
<h3>Fusionar el fichero web.xml</h3>
<p>El &uacute;ltimo paso es fusionar el fichero <em>web.xml</em> de nuestra aplicaci&oacute;n con el que viene con axis. En principio no son exluyentes, por lo que el merge es sencillo.<br />
<em>web.xml</em> de la aplicaci&oacute;n:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> version = <span style="color: #ff0000;">'1.0'</span> encoding = <span style="color: #ff0000;">'windows-1252'</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;web-app</span> <span style="color: #000066;">xmlns:xsi</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span> <span style="color: #000066;">xsi:schemaLocation</span>=<span style="color: #ff0000;">&quot;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&quot;</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;2.4&quot;</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://java.sun.com/xml/ns/j2ee&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Fichero web.xml para tutorial de prueba se servicios axis sobre Jdeveloper. http://www.tsoracle.com/wparchives/2007/07/10/servicios-web-51-poniendo-jdeveloper-a-punto-con-axis/#more-34<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Faces Servlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>javax.faces.webapp.FacesServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Faces Servlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/faces/*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;session-config<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;session-timeout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>35<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/session-timeout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/session-config<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>html<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>text/html<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>txt<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>text/plain<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/web-app<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p><em>web.xml</em> que viene con axis:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;ISO-8859-1&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
&nbsp;
<span style="color: #00bbdd;">&lt;!DOCTYPE web-app PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web</span>
<span style="color: #00bbdd;">Application 2.3//EN&quot; &quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot;&gt;</span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;web-app<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;display-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Apache-Axis<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/display-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;listener<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;listener-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.apache.axis.transport.http.AxisHTTPSessionListener<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/listener-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/listener<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;display-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Apache-Axis Servlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/display-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        org.apache.axis.transport.http.AxisServlet
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AdminServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;display-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Axis Admin Servlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/display-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        org.apache.axis.transport.http.AdminServlet
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>100<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SOAPMonitorService<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;display-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SOAPMonitorService<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/display-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        org.apache.axis.monitor.SOAPMonitorService
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;init-param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SOAPMonitorPort<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param-value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>5001<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param-value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/init-param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>100<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/servlet/AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>*.jws<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/services/*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SOAPMonitorService<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/SOAPMonitor<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
 <span style="color: #808080; font-style: italic;">&lt;!-- uncomment this if you want the admin servlet --&gt;</span>
 <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">  &lt;servlet-mapping&gt;</span>
<span style="color: #808080; font-style: italic;">    &lt;servlet-name&gt;AdminServlet&lt;/servlet-name&gt;</span>
<span style="color: #808080; font-style: italic;">    &lt;url-pattern&gt;/servlet/AdminServlet&lt;/url-pattern&gt;</span>
<span style="color: #808080; font-style: italic;">  &lt;/servlet-mapping&gt;</span>
<span style="color: #808080; font-style: italic;"> --&gt;</span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;session-config<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Default to 5 minute session timeouts --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;session-timeout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>5<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/session-timeout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/session-config<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #808080; font-style: italic;">&lt;!-- currently the W3C havent settled on a media type for WSDL;</span>
<span style="color: #808080; font-style: italic;">    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft</span>
<span style="color: #808080; font-style: italic;">    for now we go with the basic 'it's XML' response --&gt;</span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wsdl<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>text/xml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xsd<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>text/xml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;welcome-file-list</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;WelcomeFileList&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>index.jsp<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>index.html<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>index.jws<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/welcome-file-list<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/web-app<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p><em>web.xml merge de los dos:</em></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> version = <span style="color: #ff0000;">'1.0'</span> encoding = <span style="color: #ff0000;">'windows-1252'</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;web-app</span> <span style="color: #000066;">xmlns:xsi</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span> <span style="color: #000066;">xsi:schemaLocation</span>=<span style="color: #ff0000;">&quot;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&quot;</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;2.4&quot;</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://java.sun.com/xml/ns/j2ee&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Fichero web.xml para tutorial de prueba se servicios axis sobre Jdeveloper. http://www.tsoracle.com/wparchives/2007/07/10/servicios-web-51-poniendo-jdeveloper-a-punto-con-axis/#more-34<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Faces Servlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>javax.faces.webapp.FacesServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Faces Servlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/faces/*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #808080; font-style: italic;">&lt;!-- Inicio del merge para axis --&gt;</span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;listener<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;listener-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.apache.axis.transport.http.AxisHTTPSessionListener<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/listener-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/listener<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #808080; font-style: italic;">&lt;!--&lt;display-name&gt;Apache-Axis Servlet&lt;/display-name&gt;--&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        org.apache.axis.transport.http.AxisServlet
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AdminServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #808080; font-style: italic;">&lt;!--&lt;display-name&gt;Axis Admin Servlet&lt;/display-name&gt;--&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        org.apache.axis.transport.http.AdminServlet
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>100<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SOAPMonitorService<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #808080; font-style: italic;">&lt;!--&lt;display-name&gt;SOAPMonitorService&lt;/display-name&gt;--&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        org.apache.axis.monitor.SOAPMonitorService
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-class<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;init-param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SOAPMonitorPort<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param-value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>5001<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param-value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/init-param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>100<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/load-on-startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/servlet/AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>*.jws<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>AxisServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/services/*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>SOAPMonitorService<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/SOAPMonitor<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url-pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
 <span style="color: #808080; font-style: italic;">&lt;!-- uncomment this if you want the admin servlet --&gt;</span>
 <span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">  &lt;servlet-mapping&gt;</span>
<span style="color: #808080; font-style: italic;">    &lt;servlet-name&gt;AdminServlet&lt;/servlet-name&gt;</span>
<span style="color: #808080; font-style: italic;">    &lt;url-pattern&gt;/servlet/AdminServlet&lt;/url-pattern&gt;</span>
<span style="color: #808080; font-style: italic;">  &lt;/servlet-mapping&gt;</span>
<span style="color: #808080; font-style: italic;"> --&gt;</span>  
&nbsp;
<span style="color: #808080; font-style: italic;">&lt;!-- Fin del merge para axis --&gt;</span>  
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;session-config<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;session-timeout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>35<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/session-timeout<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/session-config<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>html<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>text/html<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>txt<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>text/plain<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #808080; font-style: italic;">&lt;!-- Comienzo con los mime-mapping para axis --&gt;</span>
    <span style="color: #808080; font-style: italic;">&lt;!-- currently the W3C havent settled on a media type for WSDL;</span>
<span style="color: #808080; font-style: italic;">    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft</span>
<span style="color: #808080; font-style: italic;">    for now we go with the basic 'it's XML' response --&gt;</span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wsdl<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>text/xml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>xsd<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/extension<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>text/xml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-mapping<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>  
<span style="color: #808080; font-style: italic;">&lt;!-- Fin de los mime-mapping de axis --&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- Welcome-file-list de axis --&gt;</span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;welcome-file-list</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;WelcomeFileList&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>index.jsp<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>index.html<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>index.jws<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/welcome-file<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/welcome-file-list<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #808080; font-style: italic;">&lt;!-- Fin de Welcome-file-list de axis --&gt;</span>  
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/web-app<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<h3>Comprobar que axis funciona correctamente</h3>
<p>Ya s&oacute;lo queda comprobar que axis funciona. Para ello ejecutamos la p&aacute;gina index.jsp.</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/20-ejecutar-index.jsp.gif" title="Ejecutar index.jsp"><img border="0" src="http://www.tsoracle.com/img/wsaxis/20-ejecutar-index.jsp.gif" /></a></p>
<p>Y deber&iacute;amos ver la p&aacute;gina del servidor donde podremos comprobar en el enlace <em>Validation</em> que no nos falta de n&aacute;(de lo obligatorio).</p>
<p align="center"><a rel="lightbox[roadtrip]" href="http://www.tsoracle.com/img/wsaxis/21-ejecutar-index.jsp.gif" title="Ejecutar index.jsp"><img border="0" src="http://www.tsoracle.com/img/wsaxis/21-ejecutar-index.jsp.t.gif" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tsoracle.com/wparchives/2007/07/10/servicios-web-51-poniendo-jdeveloper-a-punto-con-axis/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>
