[jboss-svn-commits] JBL Code SVN: r27602 - in labs/jbossesb/trunk/product: samples/quickstarts/webservice_wsproxy_basic and 4 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jul 6 03:00:09 EDT 2009
Author: dward
Date: 2009-07-06 03:00:09 -0400 (Mon, 06 Jul 2009)
New Revision: 27602
Modified:
labs/jbossesb/trunk/product/docs/ProgrammersGuide.odt
labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/deployment.xml
labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/readme.txt
labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/src/org/jboss/soa/esb/samples/quickstart/webservice_wsproxy_basic/test/SendWSMessage.java
labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_routed/deployment.xml
labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_routed/readme.txt
labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_versioning/deployment.xml
labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_versioning/readme.txt
labs/jbossesb/trunk/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/proxy/SOAPProxy.java
Log:
https://jira.jboss.org/jira/browse/JBESB-2672
1. Handled namespaces in wsdl processing.
2. Tighter control over SOAPActions.
3. Added deployment requirement of soap.esb to webservice_wsproxy_* quickstarts.
4. Updated readme.txt in webservice_wsproxy_* quickstarts.
Modified: labs/jbossesb/trunk/product/docs/ProgrammersGuide.odt
===================================================================
(Binary files differ)
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/deployment.xml 2009-07-06 06:09:51 UTC (rev 27601)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/deployment.xml 2009-07-06 07:00:09 UTC (rev 27602)
@@ -1,3 +1,4 @@
<jbossesb-deployment>
+ <depends>jboss.esb:deployment=soap.esb</depends>
</jbossesb-deployment>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/readme.txt 2009-07-06 06:09:51 UTC (rev 27601)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/readme.txt 2009-07-06 07:00:09 UTC (rev 27602)
@@ -16,10 +16,9 @@
1. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
- In your server console, you will see output like this:
-02:21:53,792 INFO [SOAPProxy] mapped soapaction [] to binding [HelloWorldBinding]
-02:21:53,792 INFO [SOAPProxy] mapped soapaction [""] to binding [HelloWorldBinding]
-02:21:53,793 INFO [SOAPProxy] mapped operation [sayHello] to binding [HelloWorldBinding]
-02:21:53,807 INFO [SOAPProxy] mapped binding [HelloWorldBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_basic/HelloWorldWS]
+01:18:45,517 INFO [SOAPProxy] mapped soapaction [""] to binding [{http://webservice_wsproxy_basic/helloworld}HelloWorldBinding]
+01:18:45,518 INFO [SOAPProxy] mapped operation [{http://webservice_wsproxy_basic/helloworld}sayHello] to binding [{http://webservice_wsproxy_basic/helloworld}HelloWorldBinding]
+01:18:45,518 INFO [SOAPProxy] mapped binding [{http://webservice_wsproxy_basic/helloworld}HelloWorldBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_basic/HelloWorldWS]
2. Open another command terminal window in this folder ("Window2"), type
'ant runtest'.
@@ -37,28 +36,36 @@
- This will exercise the target webservice *via* the SOAPProxy, first going
through a JBoss Remoting Gateway Listener.
- The request url is: http://localhost:9090
- - Running it will create output like this:
-[java] **** REQUEST URL: http://localhost:9090
-[java] **** REQUEST BODY: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hel="http://webservice_wsproxy_basic/helloworld"><soapenv:Header/><soapenv:Body><hel:sayHello><toWhom>jdoe</toWhom></hel:sayHello></soapenv:Body></soapenv:Envelope>
-[java] 02:26:12,389 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
-[java] 02:26:12,414 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
-[java] 02:26:12,414 DEBUG [main][header] >> "SOAPAction: [\r][\n]"
-[java] 02:26:12,415 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
-[java] 02:26:12,415 DEBUG [main][header] >> "Host: localhost:9090[\r][\n]"
-[java] 02:26:12,415 DEBUG [main][header] >> "Content-Length: 247[\r][\n]"
-[java] 02:26:12,415 DEBUG [main][header] >> "[\r][\n]"
-[java] 02:26:12,415 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hel="http://webservice_wsproxy_basic/helloworld"><soapenv:Header/><soapenv:Body><hel:sayHello><toWhom>jdoe</toWhom></hel:sayHello></soapenv:Body></soapenv:Envelope>"
-[java] 02:26:12,431 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
-[java] 02:26:12,433 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
-[java] 02:26:12,433 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
-[java] 02:26:12,434 DEBUG [main][header] << "Date: Thu, 02 Jul 2009 07:26:12 GMT[\r][\n]"
-[java] 02:26:12,434 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
-[java] 02:26:12,434 DEBUG [main][header] << "Content-Length: 297[\r][\n]"
-[java] **** RESPONSE CODE: 200
-[java] 02:26:12,438 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_basic/helloworld"><return>Hello 'jdoe' on Thu Jul 02 02:26:12 GMT-05:00 2009</return></ns2:sa"
-[java] 02:26:12,438 DEBUG [main][content] << "yHelloResponse></env:Body></env:Envelope>"
-[java] **** RESPONSE BODY: <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_basic/helloworld"><return>Hello 'jdoe' on Thu Jul 02 02:26:12 GMT-05:00 2009</return></ns2:sayHelloResponse></env:Body></env:Envelope>
+ - Running it will create output like this in the server console:
+01:19:15,983 INFO [STDOUT] Message structure:
+01:19:15,983 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_basic/helloworld"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>].
+01:19:15,993 INFO [STDOUT] Message structure:
+01:19:15,993 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_basic/helloworld"><return>Hello 'dward' on Mon Jul 06 01:19:15 GMT-05:00 2009</return></ns2:sayHelloResponse></env:Body></env:Envelope>].
+
+ ...and this in the client console:
+
+ [java] **** REQUEST URL: http://localhost:9090
+ [java] **** REQUEST BODY: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_basic/helloworld"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>
+ [java] 01:19:15,946 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
+ [java] 01:19:15,978 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:19:15,978 DEBUG [main][header] >> "SOAPAction: ""[\r][\n]"
+ [java] 01:19:15,979 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
+ [java] 01:19:15,979 DEBUG [main][header] >> "Host: localhost:9090[\r][\n]"
+ [java] 01:19:15,979 DEBUG [main][header] >> "Content-Length: 253[\r][\n]"
+ [java] 01:19:15,980 DEBUG [main][header] >> "[\r][\n]"
+ [java] 01:19:15,980 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_basic/helloworld"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>"
+ [java] 01:19:15,994 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
+ [java] 01:19:15,995 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
+ [java] 01:19:15,996 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
+ [java] 01:19:15,996 DEBUG [main][header] << "Date: Mon, 06 Jul 2009 06:19:15 GMT[\r][\n]"
+ [java] 01:19:15,996 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:19:15,996 DEBUG [main][header] << "Content-Length: 297[\r][\n]"
+ [java] **** RESPONSE CODE: 200
+ [java] 01:19:16,000 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_basic/helloworld"><return>Hello 'dward' on Mon Jul 06 01:19:15 GMT-05:00 2009</return></ns2:sa"
+ [java] 01:19:16,000 DEBUG [main][content] << "yHelloResponse></env:Body></env:Envelope>"
+ [java] **** RESPONSE BODY: <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_basic/helloworld"><return>Hello 'dward' on Mon Jul 06 01:19:15 GMT-05:00 2009</return></ns2:sayHelloResponse></env:Body></env:Envelope>
+
'runhttp' target description:
- This will exercise the target webservice *via* the SOAPProxy, first going
through an HTTP Gateway Listener.
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/src/org/jboss/soa/esb/samples/quickstart/webservice_wsproxy_basic/test/SendWSMessage.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/src/org/jboss/soa/esb/samples/quickstart/webservice_wsproxy_basic/test/SendWSMessage.java 2009-07-06 06:09:51 UTC (rev 27601)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_basic/src/org/jboss/soa/esb/samples/quickstart/webservice_wsproxy_basic/test/SendWSMessage.java 2009-07-06 07:00:09 UTC (rev 27602)
@@ -35,15 +35,15 @@
{
private static final String SOAP_PRE =
- "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hel=\"http://webservice_wsproxy_basic/helloworld\">" +
+ "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hello=\"http://webservice_wsproxy_basic/helloworld\">" +
"<soapenv:Header/>" +
"<soapenv:Body>" +
- "<hel:sayHello>" +
+ "<hello:sayHello>" +
"<toWhom>";
private static final String SOAP_POST =
"</toWhom>" +
- "</hel:sayHello>" +
+ "</hello:sayHello>" +
"</soapenv:Body>" +
"</soapenv:Envelope>";
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_routed/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_routed/deployment.xml 2009-07-06 06:09:51 UTC (rev 27601)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_routed/deployment.xml 2009-07-06 07:00:09 UTC (rev 27602)
@@ -1,4 +1,5 @@
<jbossesb-deployment>
+ <depends>jboss.esb:deployment=soap.esb</depends>
<depends>jboss.esb:deployment=jbrules.esb</depends>
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_wsproxy_routed_cbr_esb</depends>
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_wsproxy_routed_cbr_esb_reply</depends>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_routed/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_routed/readme.txt 2009-07-06 06:09:51 UTC (rev 27601)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_routed/readme.txt 2009-07-06 07:00:09 UTC (rev 27602)
@@ -16,16 +16,13 @@
1. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
- In your server console, you will see output like this in the server console:
-23:04:51,230 INFO [SOAPProxy] mapped soapaction [] to binding [HelloBinding]
-23:04:51,230 INFO [SOAPProxy] mapped soapaction [""] to binding [HelloBinding]
-23:04:51,230 INFO [SOAPProxy] mapped operation [sayHello] to binding [HelloBinding]
-23:04:51,248 INFO [SOAPProxy] mapped binding [HelloBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_routed/HelloWS]
-23:04:51,268 INFO [JDBCDataStore] Generated token 'authToken:A82FB130-6786-11DE-B130-F2BDF1A7B793' for user: 'jbossesb/JBoss ESB User'
-23:04:51,289 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
-23:04:51,407 INFO [SOAPProxy] mapped soapaction [] to binding [GoodbyeBinding]
-23:04:51,408 INFO [SOAPProxy] mapped soapaction [""] to binding [GoodbyeBinding]
-23:04:51,408 INFO [SOAPProxy] mapped operation [sayGoodbye] to binding [GoodbyeBinding]
-23:04:51,408 INFO [SOAPProxy] mapped binding [GoodbyeBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_routed/GoodbyeWS]
+01:01:00,370 INFO [SOAPProxy] mapped soapaction [""] to binding [{http://webservice_wsproxy_routed/hello}HelloBinding]
+01:01:00,370 INFO [SOAPProxy] mapped operation [{http://webservice_wsproxy_routed/hello}sayHello] to binding [{http://webservice_wsproxy_routed/hello}HelloBinding]
+01:01:00,370 INFO [SOAPProxy] mapped binding [{http://webservice_wsproxy_routed/hello}HelloBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_routed/HelloWS]
+...
+01:01:00,571 INFO [SOAPProxy] mapped soapaction [""] to binding [{http://webservice_wsproxy_routed/goodbye}GoodbyeBinding]
+01:01:00,572 INFO [SOAPProxy] mapped operation [{http://webservice_wsproxy_routed/goodbye}sayGoodbye] to binding [{http://webservice_wsproxy_routed/goodbye}GoodbyeBinding]
+01:01:00,572 INFO [SOAPProxy] mapped binding [{http://webservice_wsproxy_routed/goodbye}GoodbyeBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_routed/GoodbyeWS]
2. Open another command terminal window in this folder ("Window2"), type
'ant runtest'.
@@ -41,36 +38,36 @@
- The request url is: http://localhost:9090
- Running it will create output like this in the server console:
-23:06:38,225 INFO [STDOUT] Message before ContentBasedRouter:
-23:06:38,226 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_routed/hello"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>].
-23:06:38,313 INFO [STDOUT] Routing to Hello...
-23:06:38,440 INFO [STDOUT] Message before Hello SOAPProxy:
-23:06:38,440 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_routed/hello"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>].
-23:06:38,454 INFO [STDOUT] Message after Hello SOAPProxy:
-23:06:38,454 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_routed/hello"><return>Hello 'dward' on Thu Jul 02 23:06:38 GMT-05:00 2009</return></ns2:sayHelloResponse></env:Body></env:Envelope>].
+01:02:33,412 INFO [STDOUT] Message before ContentBasedRouter:
+01:02:33,412 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_routed/hello"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>].
+01:02:33,429 INFO [STDOUT] Routing to Hello...
+01:02:33,442 INFO [STDOUT] Message before Hello SOAPProxy:
+01:02:33,442 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_routed/hello"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>].
+01:02:33,450 INFO [STDOUT] Message after Hello SOAPProxy:
+01:02:33,450 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_routed/hello"><return>Hello 'dward' on Mon Jul 06 01:02:33 GMT-05:00 2009</return></ns2:sayHelloResponse></env:Body></env:Envelope>].
...and this in the client console:
[java] **** REQUEST URL: http://localhost:9090
[java] **** REQUEST BODY: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_routed/hello"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>
- [java] 23:06:38,011 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
- [java] 23:06:38,038 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
- [java] 23:06:38,039 DEBUG [main][header] >> "SOAPAction: ""[\r][\n]"
- [java] 23:06:38,039 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
- [java] 23:06:38,039 DEBUG [main][header] >> "Host: localhost:9090[\r][\n]"
- [java] 23:06:38,039 DEBUG [main][header] >> "Content-Length: 249[\r][\n]"
- [java] 23:06:38,039 DEBUG [main][header] >> "[\r][\n]"
- [java] 23:06:38,040 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_routed/hello"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>"
- [java] 23:06:38,460 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
- [java] 23:06:38,461 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
- [java] 23:06:38,462 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
- [java] 23:06:38,462 DEBUG [main][header] << "Date: Fri, 03 Jul 2009 04:06:38 GMT[\r][\n]"
- [java] 23:06:38,462 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
- [java] 23:06:38,462 DEBUG [main][header] << "Content-Length: 293[\r][\n]"
+ [java] 01:02:33,380 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
+ [java] 01:02:33,401 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:02:33,402 DEBUG [main][header] >> "SOAPAction: ""[\r][\n]"
+ [java] 01:02:33,402 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
+ [java] 01:02:33,403 DEBUG [main][header] >> "Host: localhost:9090[\r][\n]"
+ [java] 01:02:33,403 DEBUG [main][header] >> "Content-Length: 249[\r][\n]"
+ [java] 01:02:33,403 DEBUG [main][header] >> "[\r][\n]"
+ [java] 01:02:33,403 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hello="http://webservice_wsproxy_routed/hello"><soapenv:Header/><soapenv:Body><hello:sayHello><toWhom>dward</toWhom></hello:sayHello></soapenv:Body></soapenv:Envelope>"
+ [java] 01:02:33,460 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
+ [java] 01:02:33,461 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
+ [java] 01:02:33,462 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
+ [java] 01:02:33,462 DEBUG [main][header] << "Date: Mon, 06 Jul 2009 06:02:33 GMT[\r][\n]"
+ [java] 01:02:33,462 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:02:33,462 DEBUG [main][header] << "Content-Length: 293[\r][\n]"
[java] **** RESPONSE CODE: 200
- [java] 23:06:38,465 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_routed/hello"><return>Hello 'dward' on Thu Jul 02 23:06:38 GMT-05:00 2009</return></ns2:sayHel"
- [java] 23:06:38,465 DEBUG [main][content] << "loResponse></env:Body></env:Envelope>"
- [java] **** RESPONSE BODY: <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_routed/hello"><return>Hello 'dward' on Thu Jul 02 23:06:38 GMT-05:00 2009</return></ns2:sayHelloResponse></env:Body></env:Envelope>
+ [java] 01:02:33,466 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_routed/hello"><return>Hello 'dward' on Mon Jul 06 01:02:33 GMT-05:00 2009</return></ns2:sayHel"
+ [java] 01:02:33,466 DEBUG [main][content] << "loResponse></env:Body></env:Envelope>"
+ [java] **** RESPONSE BODY: <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayHelloResponse xmlns:ns2="http://webservice_wsproxy_routed/hello"><return>Hello 'dward' on Mon Jul 06 01:02:33 GMT-05:00 2009</return></ns2:sayHelloResponse></env:Body></env:Envelope>e>
'rungoodbye' target description:
- This will exercise the Goodbye webservice *via* a SOAPProxy, first going
@@ -79,36 +76,36 @@
- The request url is: http://localhost:9090
- Running it will create output like this in the server console:
-23:08:20,321 INFO [STDOUT] Message before ContentBasedRouter:
-23:08:20,321 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:goodbye="http://webservice_wsproxy_routed/goodbye"><soapenv:Header/><soapenv:Body><goodbye:sayGoodbye><toWhom>dward</toWhom></goodbye:sayGoodbye></soapenv:Body></soapenv:Envelope>].
-23:08:20,337 INFO [STDOUT] Routing to Goodbye...
-23:08:20,518 INFO [STDOUT] Message before Goodbye SOAPProxy:
-23:08:20,518 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:goodbye="http://webservice_wsproxy_routed/goodbye"><soapenv:Header/><soapenv:Body><goodbye:sayGoodbye><toWhom>dward</toWhom></goodbye:sayGoodbye></soapenv:Body></soapenv:Envelope>].
-23:08:20,533 INFO [STDOUT] Message after Goodbye SOAPProxy:
-23:08:20,533 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayGoodbyeResponse xmlns:ns2="http://webservice_wsproxy_routed/goodbye"><return>Goodbye 'dward' on Thu Jul 02 23:08:20 GMT-05:00 2009</return></ns2:sayGoodbyeResponse></env:Body></env:Envelope>].
+01:03:32,618 INFO [STDOUT] Message before ContentBasedRouter:
+01:03:32,618 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:goodbye="http://webservice_wsproxy_routed/goodbye"><soapenv:Header/><soapenv:Body><goodbye:sayGoodbye><toWhom>dward</toWhom></goodbye:sayGoodbye></soapenv:Body></soapenv:Envelope>].
+01:03:32,626 INFO [STDOUT] Routing to Goodbye...
+01:03:32,724 INFO [STDOUT] Message before Goodbye SOAPProxy:
+01:03:32,724 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:goodbye="http://webservice_wsproxy_routed/goodbye"><soapenv:Header/><soapenv:Body><goodbye:sayGoodbye><toWhom>dward</toWhom></goodbye:sayGoodbye></soapenv:Body></soapenv:Envelope>].
+01:03:32,739 INFO [STDOUT] Message after Goodbye SOAPProxy:
+01:03:32,739 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayGoodbyeResponse xmlns:ns2="http://webservice_wsproxy_routed/goodbye"><return>Goodbye 'dward' on Mon Jul 06 01:03:32 GMT-05:00 2009</return></ns2:sayGoodbyeResponse></env:Body></env:Envelope>].].
...and this in the client console:
[java] **** REQUEST URL: http://localhost:9090
[java] **** REQUEST BODY: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:goodbye="http://webservice_wsproxy_routed/goodbye"><soapenv:Header/><soapenv:Body><goodbye:sayGoodbye><toWhom>dward</toWhom></goodbye:sayGoodbye></soapenv:Body></soapenv:Envelope>
- [java] 23:08:19,956 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
- [java] 23:08:19,991 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
- [java] 23:08:19,992 DEBUG [main][header] >> "SOAPAction: ""[\r][\n]"
- [java] 23:08:19,993 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
- [java] 23:08:19,993 DEBUG [main][header] >> "Host: localhost:9090[\r][\n]"
- [java] 23:08:19,993 DEBUG [main][header] >> "Content-Length: 261[\r][\n]"
- [java] 23:08:19,993 DEBUG [main][header] >> "[\r][\n]"
- [java] 23:08:19,994 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:goodbye="http://webservice_wsproxy_routed/goodbye"><soapenv:Header/><soapenv:Body><goodbye:sayGoodbye><toWhom>dward</toWhom></goodbye:sayGoodbye></soapenv:Body></soapenv:Envelope>"
- [java] 23:08:20,539 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
- [java] 23:08:20,541 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
- [java] 23:08:20,541 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
- [java] 23:08:20,541 DEBUG [main][header] << "Date: Fri, 03 Jul 2009 04:08:20 GMT[\r][\n]"
- [java] 23:08:20,541 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
- [java] 23:08:20,541 DEBUG [main][header] << "Content-Length: 301[\r][\n]"
+ [java] 01:03:32,488 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
+ [java] 01:03:32,520 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:03:32,520 DEBUG [main][header] >> "SOAPAction: ""[\r][\n]"
+ [java] 01:03:32,521 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
+ [java] 01:03:32,528 DEBUG [main][header] >> "Host: localhost:9090[\r][\n]"
+ [java] 01:03:32,529 DEBUG [main][header] >> "Content-Length: 261[\r][\n]"
+ [java] 01:03:32,529 DEBUG [main][header] >> "[\r][\n]"
+ [java] 01:03:32,529 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:goodbye="http://webservice_wsproxy_routed/goodbye"><soapenv:Header/><soapenv:Body><goodbye:sayGoodbye><toWhom>dward</toWhom></goodbye:sayGoodbye></soapenv:Body></soapenv:Envelope>"
+ [java] 01:03:32,759 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
+ [java] 01:03:32,760 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
+ [java] 01:03:32,761 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
+ [java] 01:03:32,761 DEBUG [main][header] << "Date: Mon, 06 Jul 2009 06:03:32 GMT[\r][\n]"
+ [java] 01:03:32,761 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:03:32,761 DEBUG [main][header] << "Content-Length: 301[\r][\n]"
[java] **** RESPONSE CODE: 200
- [java] 23:08:20,544 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayGoodbyeResponse xmlns:ns2="http://webservice_wsproxy_routed/goodbye"><return>Goodbye 'dward' on Thu Jul 02 23:08:20 GMT-05:00 2009</return></ns2:"
- [java] 23:08:20,544 DEBUG [main][content] << "sayGoodbyeResponse></env:Body></env:Envelope>"
- [java] **** RESPONSE BODY: <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayGoodbyeResponse xmlns:ns2="http://webservice_wsproxy_routed/goodbye"><return>Goodbye 'dward' on Thu Jul 02 23:08:20 GMT-05:00 2009</return></ns2:sayGoodbyeResponse></env:Body></env:Envelope>
+ [java] 01:03:32,764 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayGoodbyeResponse xmlns:ns2="http://webservice_wsproxy_routed/goodbye"><return>Goodbye 'dward' on Mon Jul 06 01:03:32 GMT-05:00 2009</return></ns2:"
+ [java] 01:03:32,764 DEBUG [main][content] << "sayGoodbyeResponse></env:Body></env:Envelope>"
+ [java] **** RESPONSE BODY: <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:sayGoodbyeResponse xmlns:ns2="http://webservice_wsproxy_routed/goodbye"><return>Goodbye 'dward' on Mon Jul 06 01:03:32 GMT-05:00 2009</return></ns2:sayGoodbyeResponse></env:Body></env:Envelope>
Project file descriptions:
==========================
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_versioning/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_versioning/deployment.xml 2009-07-06 06:09:51 UTC (rev 27601)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_versioning/deployment.xml 2009-07-06 07:00:09 UTC (rev 27602)
@@ -1,3 +1,4 @@
<jbossesb-deployment>
+ <depends>jboss.esb:deployment=soap.esb</depends>
</jbossesb-deployment>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_versioning/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_versioning/readme.txt 2009-07-06 06:09:51 UTC (rev 27601)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsproxy_versioning/readme.txt 2009-07-06 07:00:09 UTC (rev 27602)
@@ -16,15 +16,13 @@
1. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
- In your server console, you will see output like this in your server console:
-04:02:17,312 INFO [SOAPProxy] mapped soapaction [] to binding [InvoicingBinding]
-04:02:17,312 INFO [SOAPProxy] mapped soapaction [""] to binding [InvoicingBinding]
-04:02:17,312 INFO [SOAPProxy] mapped operation [processInvoice] to binding [InvoicingBinding]
-04:02:17,326 INFO [SOAPProxy] mapped binding [InvoicingBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_versioning/InvoicingWS]
-04:02:17,337 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
-04:02:17,424 INFO [SOAPProxy] mapped soapaction [] to binding [InvoicingBinding]
-04:02:17,424 INFO [SOAPProxy] mapped soapaction [""] to binding [InvoicingBinding]
-04:02:17,424 INFO [SOAPProxy] mapped operation [processInvoice] to binding [InvoicingBinding]
-04:02:17,425 INFO [SOAPProxy] mapped binding [InvoicingBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_versioning/InvoicingWS]
+01:05:02,128 INFO [SOAPProxy] mapped soapaction [""] to binding [{http://webservice_wsproxy_versioning/invoicing}InvoicingBinding]
+01:05:02,128 INFO [SOAPProxy] mapped operation [{http://webservice_wsproxy_versioning/invoicing}processInvoice] to binding [{http://webservice_wsproxy_versioning/invoicing}InvoicingBinding]
+01:05:02,128 INFO [SOAPProxy] mapped binding [{http://webservice_wsproxy_versioning/invoicing}InvoicingBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_versioning/InvoicingWS]
+....
+01:05:02,158 INFO [SOAPProxy] mapped soapaction [""] to binding [{http://webservice_wsproxy_versioning/invoicing}InvoicingBinding]
+01:05:02,159 INFO [SOAPProxy] mapped operation [{http://webservice_wsproxy_versioning/invoicing}processInvoice] to binding [{http://webservice_wsproxy_versioning/invoicing}InvoicingBinding]
+01:05:02,159 INFO [SOAPProxy] mapped binding [{http://webservice_wsproxy_versioning/invoicing}InvoicingBinding] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://localhost:8080/Quickstart_webservice_wsproxy_versioning/InvoicingWS]
2. Open another command terminal window in this folder ("Window2"), type
'ant runtest'.
@@ -45,10 +43,10 @@
- The request url is: http://localhost:9090
- Running it will create output like this in the server console:
-04:05:02,802 INFO [STDOUT] Message before Transformation:
-04:05:02,802 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber></inv:processInvoice></soapenv:Body></soapenv:Envelope>].
-04:05:02,810 INFO [STDOUT] Message after Transformation but before SOAPProxy:
-04:05:02,810 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing">
+01:05:59,535 INFO [STDOUT] Message before Transformation:
+01:05:59,535 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber></inv:processInvoice></soapenv:Body></soapenv:Envelope>].
+01:05:59,543 INFO [STDOUT] Message after Transformation but before SOAPProxy:
+01:05:59,543 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing">
<soapenv:Header/>
<soapenv:Body>
<inv:processInvoice>
@@ -58,31 +56,31 @@
</soapenv:Body>
</soapenv:Envelope>
].
-04:05:02,973 INFO [InvoicingWS] processInvoice called with invoiceNumber [0123456789] and processDate [Tue Dec 13 08:13:28 GMT-05:00 2005]
-04:05:03,016 INFO [STDOUT] Message after SOAPProxy:
-04:05:03,016 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></env:Envelope>].
+01:05:59,561 INFO [InvoicingWS] processInvoice called with invoiceNumber [0123456789] and processDate [Tue Dec 13 08:13:28 GMT-05:00 2005]
+01:05:59,565 INFO [STDOUT] Message after SOAPProxy:
+01:05:59,565 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></env:Envelope>].
- And this in the client console:
[java] **** REQUEST URL: http://localhost:9090
[java] **** REQUEST BODY: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber></inv:processInvoice></soapenv:Body></soapenv:Envelope>
- [java] 04:05:02,607 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
- [java] 04:05:02,626 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
- [java] 04:05:02,627 DEBUG [main][header] >> "SOAPAction: ""[\r][\n]"
- [java] 04:05:02,628 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
- [java] 04:05:02,628 DEBUG [main][header] >> "Host: localhost:9090[\r][\n]"
- [java] 04:05:02,628 DEBUG [main][header] >> "Content-Length: 282[\r][\n]"
- [java] 04:05:02,628 DEBUG [main][header] >> "[\r][\n]"
- [java] 04:05:02,631 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber></inv:processInvoice></soapenv:Body></soapenv:Envelope>"
- [java] 04:05:03,018 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
- [java] 04:05:03,020 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
- [java] 04:05:03,020 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
- [java] 04:05:03,020 DEBUG [main][header] << "Date: Fri, 03 Jul 2009 09:05:03 GMT[\r][\n]"
- [java] 04:05:03,020 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
- [java] 04:05:03,020 DEBUG [main][header] << "Content-Length: 268[\r][\n]"
+ [java] 01:05:59,443 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
+ [java] 01:05:59,464 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:05:59,464 DEBUG [main][header] >> "SOAPAction: ""[\r][\n]"
+ [java] 01:05:59,465 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
+ [java] 01:05:59,465 DEBUG [main][header] >> "Host: localhost:9090[\r][\n]"
+ [java] 01:05:59,465 DEBUG [main][header] >> "Content-Length: 282[\r][\n]"
+ [java] 01:05:59,465 DEBUG [main][header] >> "[\r][\n]"
+ [java] 01:05:59,466 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber></inv:processInvoice></soapenv:Body></soapenv:Envelope>"
+ [java] 01:05:59,574 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
+ [java] 01:05:59,577 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
+ [java] 01:05:59,577 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
+ [java] 01:05:59,577 DEBUG [main][header] << "Date: Mon, 06 Jul 2009 06:05:59 GMT[\r][\n]"
+ [java] 01:05:59,577 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:05:59,578 DEBUG [main][header] << "Content-Length: 268[\r][\n]"
[java] **** RESPONSE CODE: 200
- [java] 04:05:03,024 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></e"
- [java] 04:05:03,024 DEBUG [main][content] << "nv:Envelope>"
+ [java] 01:05:59,581 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></e"
+ [java] 01:05:59,581 DEBUG [main][content] << "nv:Envelope>"
[java] **** RESPONSE BODY: <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></env:Envelope>
'runnew' target description:
@@ -91,33 +89,33 @@
- The request url is: http://localhost:9090
- Running it will create output like this in the server console:
-04:06:43,687 INFO [STDOUT] Message before SOAPProxy:
-04:06:43,687 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber><processDate>2005-12-13T14:13:28.443+01:00</processDate></inv:processInvoice></soapenv:Body></soapenv:Envelope>].
-04:06:43,692 INFO [InvoicingWS] processInvoice called with invoiceNumber [0123456789] and processDate [Tue Dec 13 08:13:28 GMT-05:00 2005]
-04:06:43,694 INFO [STDOUT] Message after SOAPProxy:
-04:06:43,694 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></env:Envelope>].
+01:06:52,304 INFO [STDOUT] Message before SOAPProxy:
+01:06:52,304 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber><processDate>2005-12-13T14:13:28.443+01:00</processDate></inv:processInvoice></soapenv:Body></soapenv:Envelope>].
+01:06:52,309 INFO [InvoicingWS] processInvoice called with invoiceNumber [0123456789] and processDate [Tue Dec 13 08:13:28 GMT-05:00 2005]
+01:06:52,311 INFO [STDOUT] Message after SOAPProxy:
+01:06:52,311 INFO [STDOUT] [<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></env:Envelope>].
- And this in the client console:
[java] **** REQUEST URL: http://localhost:9999
[java] **** REQUEST BODY: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber><processDate>2005-12-13T14:13:28.443+01:00</processDate></inv:processInvoice></soapenv:Body></soapenv:Envelope>
- [java] 04:06:43,558 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
- [java] 04:06:43,593 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
- [java] 04:06:43,593 DEBUG [main][header] >> "SOAPAction: ""[\r][\n]"
- [java] 04:06:43,594 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
- [java] 04:06:43,594 DEBUG [main][header] >> "Host: localhost:9999[\r][\n]"
- [java] 04:06:43,594 DEBUG [main][header] >> "Content-Length: 338[\r][\n]"
- [java] 04:06:43,594 DEBUG [main][header] >> "[\r][\n]"
- [java] 04:06:43,595 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber><processDate>2005-12-13T14:13:28.443+01:00</processDate></inv:processInvoice></soapenv:Body></soapenv:Envelope>"
- [java] 04:06:43,695 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
- [java] 04:06:43,697 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
- [java] 04:06:43,697 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
- [java] 04:06:43,697 DEBUG [main][header] << "Date: Fri, 03 Jul 2009 09:06:43 GMT[\r][\n]"
- [java] 04:06:43,697 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
- [java] 04:06:43,697 DEBUG [main][header] << "Content-Length: 268[\r][\n]"
+ [java] 01:06:52,210 DEBUG [main][header] >> "POST / HTTP/1.1[\r][\n]"
+ [java] 01:06:52,248 DEBUG [main][header] >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:06:52,249 DEBUG [main][header] >> "SOAPAction: ""[\r][\n]"
+ [java] 01:06:52,249 DEBUG [main][header] >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
+ [java] 01:06:52,250 DEBUG [main][header] >> "Host: localhost:9999[\r][\n]"
+ [java] 01:06:52,250 DEBUG [main][header] >> "Content-Length: 338[\r][\n]"
+ [java] 01:06:52,250 DEBUG [main][header] >> "[\r][\n]"
+ [java] 01:06:52,251 DEBUG [main][content] >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inv="http://webservice_wsproxy_versioning/invoicing"><soapenv:Header/><soapenv:Body><inv:processInvoice><invoiceNumber>0123456789</invoiceNumber><processDate>2005-12-13T14:13:28.443+01:00</processDate></inv:processInvoice></soapenv:Body></soapenv:Envelope>"
+ [java] 01:06:52,312 DEBUG [main][header] << "HTTP/1.1 200 OK[\r][\n]"
+ [java] 01:06:52,314 DEBUG [main][header] << "Server: Apache-Coyote/1.1[\r][\n]"
+ [java] 01:06:52,314 DEBUG [main][header] << "X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0[\r][\n]"
+ [java] 01:06:52,314 DEBUG [main][header] << "Date: Mon, 06 Jul 2009 06:06:52 GMT[\r][\n]"
+ [java] 01:06:52,314 DEBUG [main][header] << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
+ [java] 01:06:52,314 DEBUG [main][header] << "Content-Length: 268[\r][\n]"
[java] **** RESPONSE CODE: 200
- [java] 04:06:43,700 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></e"
- [java] 04:06:43,700 DEBUG [main][content] << "nv:Envelope>"
+ [java] 01:06:52,317 DEBUG [main][content] << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></e"
+ [java] 01:06:52,318 DEBUG [main][content] << "nv:Envelope>"
[java] **** RESPONSE BODY: <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:processInvoiceResponse xmlns:ns2="http://webservice_wsproxy_versioning/invoicing"><success>true</success></ns2:processInvoiceResponse></env:Body></env:Envelope>
Project file descriptions:
Modified: labs/jbossesb/trunk/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/proxy/SOAPProxy.java
===================================================================
--- labs/jbossesb/trunk/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/proxy/SOAPProxy.java 2009-07-06 06:09:51 UTC (rev 27601)
+++ labs/jbossesb/trunk/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/proxy/SOAPProxy.java 2009-07-06 07:00:09 UTC (rev 27602)
@@ -26,6 +26,8 @@
import java.util.HashMap;
import java.util.Map;
+import javax.xml.namespace.QName;
+
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.jboss.internal.soa.esb.publish.Publish;
@@ -84,9 +86,9 @@
private MessagePayloadProxy payloadProxy;
- private Map<String,String> soapaction_to_binding = new HashMap<String,String>();
- private Map<String,String> operation_to_binding = new HashMap<String,String>();
- private Map<String,SOAPProxyTransport> binding_to_transport = new HashMap<String,SOAPProxyTransport>();
+ private Map<String,QName> soapaction_to_binding = new HashMap<String,QName>();
+ private Map<QName,QName> operation_to_binding = new HashMap<QName,QName>();
+ private Map<QName,SOAPProxyTransport> binding_to_transport = new HashMap<QName,SOAPProxyTransport>();
public SOAPProxy(ConfigTree config) throws ConfigurationException
{
@@ -98,27 +100,18 @@
{
for ( WSDLBindingOperation wsdl_bind_oper : wsdl_bind.getOperations() )
{
- String binding = wsdl_bind_oper.getWsdlBinding().getName().getLocalPart();
+ QName binding = wsdl_bind.getName();
if (binding != null)
{
+ // http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528
+ // http://www.ws-i.org/Profiles/BasicProfile-1.1.html#SOAPAction_HTTP_Header
String soapaction = wsdl_bind_oper.getSOAPAction();
- if (soapaction == null)
+ if (soapaction != null)
{
- soapaction = "";
- }
- if ( !soapaction_to_binding.containsKey(soapaction) )
- {
- soapaction_to_binding.put(soapaction, binding);
- if ( logger.isInfoEnabled() )
+ if ( !soapaction.startsWith("\"") && !soapaction.endsWith("\"") )
{
- logger.info("mapped soapaction [" + soapaction + "] to binding [" + binding + "]");
+ soapaction = '"' + soapaction + '"';
}
- }
- // http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528
- // http://www.ws-i.org/Profiles/BasicProfile-1.1.html#SOAPAction_HTTP_Header
- if ( !soapaction.startsWith("\"") && !soapaction.endsWith("\"") )
- {
- soapaction = '"' + soapaction + '"';
if ( !soapaction_to_binding.containsKey(soapaction) )
{
soapaction_to_binding.put(soapaction, binding);
@@ -128,7 +121,7 @@
}
}
}
- String operation = wsdl_bind_oper.getRef().getLocalPart();
+ QName operation = wsdl_bind_oper.getRef();
if ( operation != null && !operation_to_binding.containsKey(operation) )
{
operation_to_binding.put(operation, binding);
@@ -144,7 +137,7 @@
{
for ( WSDLEndpoint wsdl_end : wsdl_svc.getEndpoints() )
{
- String binding = wsdl_end.getBinding().getLocalPart();
+ QName binding = wsdl_end.getBinding();
SOAPProxyTransport transport = null;
String endpointAddress = wsdl_end.getAddress();
if ( endpointAddress.toLowerCase().startsWith("http") )
@@ -185,13 +178,13 @@
public Message process(Message message) throws ActionProcessingException
{
String soapaction = (String)message.getProperties().getProperty("soapaction");
- String binding = (soapaction != null) ? soapaction_to_binding.get(soapaction) : null;
- String operation = null;
+ QName binding = (soapaction != null) ? soapaction_to_binding.get(soapaction) : null;
+ QName operation = null;
if (binding == null)
{
if ( logger.isEnabledFor(Level.WARN) )
{
- logger.warn("null binding for soapaction [" + soapaction + "]. Resorting to (potentially expensive) parsing of Envelope to discover operation.");
+ logger.warn("null binding for soapaction [" + soapaction + "]; parsing envelope to discover operation...");
}
operation = getOperation(message);
binding = (operation != null) ? operation_to_binding.get(operation) : null;
@@ -220,8 +213,8 @@
}
}
- // This is a best (and potentially expensive) guess! See logger.warn(String) warning in process(Message) above.
- private String getOperation(Message message) throws ActionProcessingException
+ // This is a best guess (and potentially expensive)! See logger.warn(String) warning in process(Message) above.
+ private QName getOperation(Message message) throws ActionProcessingException
{
Object payload;
try
@@ -245,7 +238,7 @@
{
throw new ActionProcessingException( "unsupported payload type: " + payload.getClass().getName() );
}
- String operation = null;
+ QName operation = null;
ContentHandler ch = new OperationFinder();
try
{
@@ -288,7 +281,7 @@
else if (insideEnvelope && insideBody)
{
// stop parsing as soon as possible!
- throw new OperationFound(localName);
+ throw new OperationFound( new QName(uri, localName) );
}
}
@@ -296,9 +289,9 @@
private class OperationFound extends RuntimeException
{
- private String operation;
+ private QName operation;
- private OperationFound(String operation)
+ private OperationFound(QName operation)
{
this.operation = operation;
}
More information about the jboss-svn-commits
mailing list