cicpa
Jul 27th, 2006, 11:04 AM
I follow the example present in the spring-ws-1.0-m1 distribution (airline).
The server works fine (i use jaxb for mar/unm).
I have some problem with my Client The Soap Response return with envelope=null;
I used TCPMON for debug end in the response message there is the right xml.
I think the xml soap response need the namespace end the prefix for all the elements to work (but is only my opinion).
this is the wsdl
http://www.dynaweb.it/etone/schemas/etone.wsdl
this is the xsd
http://www.dynaweb.it/etone/schemas/etone.xsd
the client
http://www.dynaweb.it/etone/schemas/ProductDetailAction.java
THE HTTP REQUEST
POST /ETONE/Product HTTP/1.1
Content-Type: text/xml; charset="utf-8"
Content-Length: 415
SOAPAction: ""
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.5.0_01
Host: 127.0.0.1
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<etone:GetBrandsXSubCategoryRequest xmlns:etone="http://www.dynaweb.it/etone/schemas">
<etone:user>user</etone:user>
<etone:password>pwd</etone:password>
<etone:companyId>1</etone:companyId>
<etone:subCategoryId>1</etone:subCategoryId>
</etone:GetBrandsXSubCategoryRequest>
</SOAP-ENV:Body></SOAP-ENV:Envelope>
THE HTTP RESPONSE
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5
Content-Type: text/xml;charset=UTF-8
Content-Length: 555
Date: Thu, 27 Jul 2006 15:46:13 GMT
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<GetBrandsXSubCategoryResponse xmlns="http://www.dynaweb.it/etone/schemas">
<brands>
<brandId>1</brandId>
<brand>Sony</brand>
</brands>
<brands>
<brandId>2</brandId>
<brand>HP</brand>
</brands>
<brands>
<brandId>3</brandId>
<brand>Bozzarelli</brand>
</brands>
<brands>
<brandId>4</brandId>
<brand>MeteoPio.it</brand>
</brands>
<brands>
<brandId>5</brandId>
<brand>cheStappAfa.it</brand>
</brands>
</GetBrandsXSubCategoryResponse>
</SOAP-ENV:Body></SOAP-ENV:Envelope>
Please help me!
Thanks
The server works fine (i use jaxb for mar/unm).
I have some problem with my Client The Soap Response return with envelope=null;
I used TCPMON for debug end in the response message there is the right xml.
I think the xml soap response need the namespace end the prefix for all the elements to work (but is only my opinion).
this is the wsdl
http://www.dynaweb.it/etone/schemas/etone.wsdl
this is the xsd
http://www.dynaweb.it/etone/schemas/etone.xsd
the client
http://www.dynaweb.it/etone/schemas/ProductDetailAction.java
THE HTTP REQUEST
POST /ETONE/Product HTTP/1.1
Content-Type: text/xml; charset="utf-8"
Content-Length: 415
SOAPAction: ""
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.5.0_01
Host: 127.0.0.1
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<etone:GetBrandsXSubCategoryRequest xmlns:etone="http://www.dynaweb.it/etone/schemas">
<etone:user>user</etone:user>
<etone:password>pwd</etone:password>
<etone:companyId>1</etone:companyId>
<etone:subCategoryId>1</etone:subCategoryId>
</etone:GetBrandsXSubCategoryRequest>
</SOAP-ENV:Body></SOAP-ENV:Envelope>
THE HTTP RESPONSE
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5
Content-Type: text/xml;charset=UTF-8
Content-Length: 555
Date: Thu, 27 Jul 2006 15:46:13 GMT
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<GetBrandsXSubCategoryResponse xmlns="http://www.dynaweb.it/etone/schemas">
<brands>
<brandId>1</brandId>
<brand>Sony</brand>
</brands>
<brands>
<brandId>2</brandId>
<brand>HP</brand>
</brands>
<brands>
<brandId>3</brandId>
<brand>Bozzarelli</brand>
</brands>
<brands>
<brandId>4</brandId>
<brand>MeteoPio.it</brand>
</brands>
<brands>
<brandId>5</brandId>
<brand>cheStappAfa.it</brand>
</brands>
</GetBrandsXSubCategoryResponse>
</SOAP-ENV:Body></SOAP-ENV:Envelope>
Please help me!
Thanks