Dear all,

I had deployed a web service in JBoss 4.03sp1 using JWSDP 2.0 
(document/literal).  I can consume it using a normal Java WS client.  However, 
when I tried to use VS 2005 C++ WS Reference to access a particular method, a 
AxisFault occurred.  When I observed the SOAP, it appeared no problem for the 
C++ program to call the ws service.

I can't find any resource related to this issue.  Could anybody help?  Thank 
you.

Below is the SOAP envelop and http header comparison:

Java WS Client (can run):

[REQUEST]

POST /userActivityWS/userActivityWS HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Length: 451
SOAPAction: ""
User-Agent: Java/1.5.0_04
Host: help.dyndns.org:8080
Connection: keep-alive

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";>
        <env:Body>
                <ans1:login xmlns:ans1="http://help.dyndns.org:8080/types";>
                        <String_1>youzi</String_1>
                        <String_2>testtest</String_2>
                        <boolean_3>false</boolean_3>
                </ans1:login>
        </env:Body>
</env:Envelope>

[RESPONSE]

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 
date=200510231751)/Tomcat-5.5
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 14 Mar 2006 12:18:26 GMT

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <soapenv:Body>
                <ns1:loginResponse 
xmlns:ns1="http://help.dyndns.org:8080/types";>
                        <?xml version="1.0" encoding="UTF-8"?>
truez4+velsuFjqi37yphqzmxg==
                </ns1:loginResponse>
        </soapenv:Body>
</soapenv:Envelope>




VS 2005 Web Reference Client (Can run, but return error)

[REQUEST]

POST /userActivityWS/userActivityWS HTTP/1.1
Content-Length: 405
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Accept: text/xml
Host: help.dyndns.org
User-Agent: Microsoft-ATL-Native/8.00

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soapenc=" 
http://schemas.xmlsoap.org/soap/encoding/";>
        <soap:Body>
                
                        <String_1>youzi</String_1>
                        <String_2>testtest</String_2>
                        <boolean_3>false</boolean_3>
                
        </soap:Body>
</soap:Envelope>


[RESPONSE]

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 
date=200510231751)/Tomcat-5.5
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 14 Mar 2006 12:27:10 GMT
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <soapenv:Body>
                <soapenv:Fault>
                        soapenv:Client
                        Invalid element in 
com.help.ws.UserActivity_login_RequestStruct - String_1
                        
                </soapenv:Fault>
        </soapenv:Body>
</soapenv:Envelope>


View the original post : 
http://staging.jboss.com/index.html?module=bb&op=viewtopic&p=3890793#3890793

Reply to the post : 
http://staging.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3890793


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to