You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ne...@wipro.com on 2005/08/30 17:26:10 UTC

Facing webservices issue while invoking soap attachment RPC Webservices having base64BinaryDatatype

Hi All,
            I am facing the following issue , if anybody has some clue pls let me know
***********************************************************************************************************************************************
we have succesfully deployed soap with attchment rpc oriented webservice on axis1.1 on weblogic 8.1(by generating  stubs using wsdl2java and implementing server side class in the stub)
Following 2 issues we are facing
1) While trying to generate the wsdl description by giving url http://localhost:7001/axis/services/ValidateOceanMarinePolicyQuoteInqRqMMPort?wsdl
we are getting the following error:
Fault - makeTypeElement() was told to create a type "{............................CustomAxisFault", with no containing element AxisFault  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException

Tried to solve it: By modifying the wsdl but couldn't get success . Also it is 3rd part wsdl so not sure to what level we can modify it

2) While trying to invoke the above mentioned webservice from the java client from the following code
 String fileName ="c:/sample_request.xml";
              String url="http://localhost:7001/axis/services/ServerInqRqMMPort";
             StreamSource streamSource = new StreamSource(fileName);
            ............................................
            .............................................
            QName qName = new QName("ValidateServerPolicyQuoteInqRqMMPort", "StreamSource");
            ..................................................................................
            call.registerTypeMapping(streamSource.getClass(), qName, org.apache.axis.encoding.ser.SimpleSerializerFactory.class, org.apache.axis.encoding.ser.SimpleDeserializerFactory.class);
            call.setReturnType(XMLType.XSD_ANY);
            Object[] params = new Object[] { streamSource };
        
         //***   System.out.println("StramSource Object which got convereted is"+params.toString());
            System.out.println("Invoking RPC webservice");
            try {
            String result = (String) call.invoke(params); // Getting error on this line
            System.out.println("Result");
            }
            catch(Exception ext){
                System.out.println("Exception in call.invoke...");
                            ext.printStackTrace();
            }
            ..............................................................

We are getting error :
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXException: Deserializing parameter 'MessageInput':  could not find deserializer for type {ValidateOceanMarinePolicyQuoteInqRqMMPort}StreamSource
 faultActor:
 faultNode:
...............................................
...............................................
org.xml.sax.SAXException: Deserializing parameter 'MessageInput':  could not find deserializer for type {ValidateOceanMarinePolicyQuoteInqRqMMPort}StreamSource
 at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)


Thanks In Advance

Neeraj Srivastava
91-9886237717

________________________________





Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.