wood burning stoves 2.0*
The moose likes Websphere and the fly likes Webservices and Websphere 5.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Webservices and Websphere 5.1 " Watch "Webservices and Websphere 5.1 " New topic
Author

Webservices and Websphere 5.1

aanchal mathur
Greenhorn

Joined: Sep 13, 2001
Posts: 29
Hi,

I have an application deployed on Websphere 5.1 Application Server and i have a webservice successfully deployed in my EAR file. Now since i need to test the Service i have an exsiting java standalone client which makes use of Apache Soap . But i keep gettin an error when i run the client program on Webshpere. But please note that the same clicnt program works fine with the Webservice deployed on the Oracle9ias Application Server. I cant understand wat is it that i've done incorrect. below i've pasted all the details.

I am using Apache SOAP 2.3.1 . The error i get is as follows :

[SOAPException: faultCode=SOAP-ENV:Client; msg=No Deserializer found to deserialize a ' http://soap.ejb.businessobjects.a2g.infocorpnow.com:querySessionBean
Return' using encoding style 'null'.; targetException=java.lang.IllegalArgumentException: No Deserializer found to deserialize a 'http://soap.ejb
.businessobjects.a2g.infocorpnow.com:querySessionBeanReturn' using encoding style 'null'.]


But when i c the request and response on the TCPMON utility , itgives the following :

REQUEST :

<?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/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:querySessionBean xmlns:ns1="A2GWebServiceBean" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<myrequest xsi:type="xsd:string"><propertyBag><employeeid>SUPER</employeeid><password>MTliMjg3ZGYyM2NkZmJhYjdiYTZmMzJmNTU5ZGNhNTc=</password><javaSessionBean>A2G_OrganizationsSB</javaSessionBean><function><readDynamicQuery><Query dataTag="Department" maxRecords="1"/></readDynamicQuery></function></propertyBag></myrequest>
</ns1:querySessionBean>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



RESPONSE on TCPMON :


<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><querySessionBeanResponse xmlns="A2GWebServiceBean"><querySessionBeanReturn xmlns="http://soap.ejb.businessobjects.a2g.infocorpnow.com"><ReplyInformation><ReturnObject><Department address="82 Westmorland Street" city="Fredericton" country="Canada" departmentid="SNB" description="Service New Brunswick" enterpriseid="PNB" postalcode="E3B 5G4" province="New Brunswick"/><Department address2=" " departmentid="WEBDEP" description="Web Department" enterpriseid="PNB"/></ReturnObject><ErrorObject code="0" message="Success"/></ReplyInformation></querySessionBeanReturn></querySessionBeanResponse></soapenv:Body></soapenv:Envelope>


I'm pasting part of my java soap client used for SOAP Requests and Responses :

org.apache.soap.rpc.Call call = new org.apache.soap.rpc.Call();
call.setTargetObjectURI("A2GWebServiceBean");
call.setMethodName("querySessionBean");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);

org.apache.soap.transport.http.SOAPHTTPConnection conn = new org.apache.soap.transport.http.SOAPHTTPConnection();
conn.setUserName("SUPER");
conn.setPassword("password");
call.setSOAPTransport(conn);

org.apache.soap.encoding.SOAPMappingRegistry smr = new SOAPMappingRegistry ();

StringDeserializer sd = new StringDeserializer ();
smr.mapTypes (Constants.NS_URI_SOAP_ENC,new QName ("", "querySessionBeanReturn"), null, null, sd);
call.getSOAPMappingRegistry();



Below i'm pasting my WSDL file :


< xml version="1.0" encoding="UTF-8" ?>
< wsdl efinitions targetNamespace="http://soap.ejb.businessobjects.a2g.infocorpnow.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://soap.ejb.businessobjects.a2g.infocorpnow.com" xmlns:intf="http://soap.ejb.businessobjects.a2g.infocorpnow.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
< wsdl:types >
< schema elementFormDefault="qualified" targetNamespace="http://soap.ejb.businessobjects.a2g.infocorpnow.com" xmlns="http://www.w3.org/2001/XMLSchema" >
< element name="querySessionBean" >
< complexType >
< sequence >
< element name="arg_0_0" nillable="true" type="xsd:string" />
< /sequence >
</ complexType >
</ element >
< element name="querySessionBeanResponse" >
< complexType >
< sequence >
< element name="querySessionBeanReturn" nillable="true" type="xsd:string" />
</ sequence >
</ complexType >
</ element >
</ schema >
</ wsdl:types >
< wsdl:message name="querySessionBeanRequest" >
< wsdl art element="impl:querySessionBean" name="parameters" />
</ wsdl:message >
< wsdl:message name="querySessionBeanResponse" >
< wsdl art element="impl:querySessionBeanResponse" name="parameters" />
</ wsdl:message >
< wsdl ortType name="A2GWebService" >
< wsdl peration name="querySessionBean" >
< wsdl:input message="impl:querySessionBeanRequest" name="querySessionBeanRequest" />
< wsdl utput message="impl:querySessionBeanResponse" name="querySessionBeanResponse" />
</ wsdl peration >
</ wsdl ortType >
< wsdl:binding name="A2GWebServiceBeanSoapBinding" type="impl:A2GWebService" >
< wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
< wsdl peration name="querySessionBean" >
< wsdlsoap peration soapAction="" />
< wsdl:input name="querySessionBeanRequest" >
< wsdlsoap:body use="literal" />
</ wsdl:input >
< wsdl utput name="querySessionBeanResponse" >
< wsdlsoap:body use="literal" />
</ wsdl utput >
</ wsdl peration >
</ wsdl:binding >
< wsdl:service name="A2GWebServiceService" >
< wsdl ort binding="impl:A2GWebServiceBeanSoapBinding" name="A2GWebServiceBean" >
< wsdlsoap:address location="http://aanchal:9080/a2g/services/A2GWebServiceBean" />
</ wsdl ort >
</ wsdl:service >
</ wsdl efinitions >


Please help and tell me where i'm goin wrong...
thanx
aanchal.

[ May 31, 2004: Message edited by: aanchal mathur ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Webservices and Websphere 5.1