Hi, everyone:
I have axis-1.3-service and axis-1.3-client.jar file. If i use the
axis-1.3-client.jar under a pure java application, it works very well.
Here is the request i got from the tcpMon:
POST /knb/services/AuthenticationService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.3
Host: 127.0.0.1:1234
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://ecoinformatics.org/authenticationservice-1.0.0#login"
Content-Length: 517
<?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>
<login xmlns="http://ecoinformatics.org/authenticationservice-1.0.0">
<AuthenticationServiceLoginRequestElement>
<userName>uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org</userName>
<passWd>ssss</passWd>
</AuthenticationServiceLoginRequestElement>
</login>
</soapenv:Body>
</soapenv:Envelope>
I have another axis-1.4-another-service, during the service code i need
to access the axis-1.3-service. So I use the axis-1.3-client.jar in
axis-1.4-another-service. However, this time it failed and get an error
like:
org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to deserialize.
Base on the error message, I thought the request probably has some new
elements or attribute and the axis-1.3-service can't understand it. So
I turned on the tcpMon again. I compared the two request, the only
difference is the User-Agent of http header. The one succeeded is
Axis/1.3. The one failed is Axis/1.4. So the Axis/1.4 couldn't access
axis-1.3-sevice? Or did I miss anything?
Here is the request from Axis/1.4 to access 1.3(failed):
POST /knb/services/AuthorizationService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.4
Host: 127.0.0.1:1234
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://ecoinformatics.org/authenticationservice-1.0.0#login"
Content-Length: 517
<?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>
<login xmlns="http://ecoinformatics.org/authenticationservice-1.0.0">
<AuthenticationServiceLoginRequestElement>
<userName>uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org</userName>
<passWd>ssss</passWd>
</AuthenticationServiceLoginRequestElement>
</login>
</soapenv:Body>
</soapenv:Envelope>
Any suggestion and comment will be highly appreciated.
Regards,
Jing
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org