You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Yuhichi Nakamura <NA...@jp.ibm.com> on 2001/02/01 16:35:47 UTC
Error on IBM WAS 3.5 (Re: ANNOUNCE: Apache SOAP v2.1 Release Candidate 1)
I just tried only an address book example. With Tomcat, it was ok.
However, I got an error on IBM WAS 3.5. Someone can help me.
The client side is as follows:
----------- begin -------
C:\apache\soap-2_1\bin>java org.apache.soap.server.ServiceManagerClient
http://l
ocalhost:2020/soap/servlet/rpcrouter deploy C:
\APACHE\soap-2_1\samples\addressbo
ok\DeploymentDescriptor.xml
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Miss
ing content type.]
at
org.apache.soap.transport.TransportMessage.read(TransportMessage.java
:209)
at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:296)
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
tion.java:208)
at org.apache.soap.rpc.Call.invoke(Call.java:203)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:127)
at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
nt.java:140)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java:228)
----------- end -------
With TcpTunnelGUI, I captured the HTTP request and response. The request
is as follows:
----------- begin -------
POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost:2020
Content-Type: text/xml; charset=utf-8
Content-Length: 2972
SOAPAction: ""
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV
="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi
="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd
="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:deploy xmlns:ns1="urn:xml-soap-service-management-service"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<descriptor xmlns:ns2="http://xml.apache.org/xml-soap" xsi:type
="ns2:DeploymentDescriptor">
<faultListener xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Array" ns3:arrayType="xsd:string[1]">
<item xsi:type="xsd:string">org.apache.soap.server.DOMFaultListener</item>
</faultListener>
<providerClass xsi:type
="xsd:string">samples.addressbook.AddressBook</providerClass>
<serviceType xsi:type="xsd:int">0</serviceType>
<serviceClass xsi:type="xsd:string" xsi:null="true"/>
<methods xmlns:ns4="http://schemas.xmlsoap.org/soap/encoding/" xsi:type
="ns4:Array" ns4:arrayType="xsd:string[4]">
<item xsi:type="xsd:string">getAddressFromName</item>
<item xsi:type="xsd:string">addEntry</item>
<item xsi:type="xsd:string">getAllListings</item>
<item xsi:type="xsd:string">putListings</item>
</methods>
<providerType xsi:type="xsd:byte">0</providerType>
<scriptLanguage xsi:type="xsd:string" xsi:null="true"/>
<mappings xmlns:ns5="http://schemas.xmlsoap.org/soap/encoding/" xsi:type
="ns5:Array" ns5:arrayType="ns2:TypeMapping[2]">
<item xsi:type="ns2:TypeMapping">
<encodingStyle xsi:type
="xsd:string">http://schemas.xmlsoap.org/soap/encoding/</encodingStyle>
<elementType-ns xsi:type
="xsd:string">urn:xml-soap-address-demo</elementType-ns>
<elementType-lp xsi:type="xsd:string">address</elementType-lp>
<javaType xsi:type="xsd:string">samples.addressbook.Address</javaType>
<xml2JavaClassName xsi:type
="xsd:string">org.apache.soap.encoding.soapenc.BeanSerializer</xml2JavaClassName>
<java2XMLClassName xsi:type
="xsd:string">org.apache.soap.encoding.soapenc.BeanSerializer</java2XMLClassName>
</item>
<item xsi:type="ns2:TypeMapping">
<encodingStyle xsi:type
="xsd:string">http://schemas.xmlsoap.org/soap/encoding/</encodingStyle>
<elementType-ns xsi:type
="xsd:string">urn:xml-soap-address-demo</elementType-ns>
<elementType-lp xsi:type="xsd:string">phone</elementType-lp>
<javaType xsi:type="xsd:string">samples.addressbook.PhoneNumber</javaType>
<xml2JavaClassName xsi:type
="xsd:string">org.apache.soap.encoding.soapenc.BeanSerializer</xml2JavaClassName>
<java2XMLClassName xsi:type
="xsd:string">org.apache.soap.encoding.soapenc.BeanSerializer</java2XMLClassName>
</item>
</mappings>
<defaultSMRClass xsi:type="xsd:string" xsi:null="true"/>
<ID xsi:type="xsd:string">urn:AddressFetcher</ID>
<props xsi:type="ns2:Map" xsi:null="true"/>
<isStatic xsi:type="xsd:boolean">false</isStatic>
<scriptFilenameOrString xsi:type="xsd:string" xsi:null="true"/>
<scope xsi:type="xsd:int">2</scope>
</descriptor>
</ns1:deploy>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
----------- end -------
The response is as follows:
----------- begin --------
HTTP/1.1 200 ok
Date: Thu, 01 Feb 2001 15:12:44 GMT
Server: IBM_HTTP_Server/1.3.12 Apache/1.3.12 (Win32)
Set-Cookie: sesessionid=NKIEFJQAAAAANKP42ZQYEAQ;Path=/
Cache-Control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
content-length: 438
Connection: close
Content-Type: text/xml;;charset=utf-8
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV
="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi
="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd
="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:deployResponse xmlns:ns1="urn:xml-soap-service-management-service"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
</ns1:deployResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
---------- end -------
Your help is really appreciated.
Regards,
Yuhichi Nakamura
IBM Research, Tokyo Research Laboratory
Tel: +81-46-215-4668
FAX: +81-46-215-7413