Axis: SimpleDeserializer error

Hi,
I am getting an error "SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize" when i try to set the style of webservice to document literal and access it via webservice client. Also the service works fine when the style was rpc.
Any idea on how to resolve this issue. Am using Axis1.2.x version.
Thanks,
Sathish

Hello,
I am trying to invoke the web service-
String endpoint ="http://www.oorsprong.org/websamples.countryinfo";
Service service = new Service();
Call call = (Call)service.createCall();     
call.setSOAPActionURI("");
call.setUseSOAPAction(true);
     //call.setOperationName(new QName(endpoint,"registerService"));
     call.setOperationName(new QName(endpoint,"ListOfContinentsByName"));
     call.registerTypeMapping(WSClientTest.class, new QName(endpoint,"ListOfContinentsByName"),
new org.apache.axis.encoding.ser.BeanSerializerFactory(WSClientTest.class, new QName(endpoint,"ListOfContinentsByName")),
new org.apache.axis.encoding.ser.BeanDeserializerFactory(WSClientTest.class, new QName(endpoint,"ListOfContinentsByName")));
          //call.OPERATION_STYLE_PROPERTY ="document";
call.setTargetEndpointAddress( new java.net.URL("http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso") );
     // String ret =(String)call.invoke(new Object[]{new String("abot")});
     org.oorsprong.www.websamples_countryinfo.TContinent[] ret =( org.oorsprong.www.websamples_countryinfo.TContinent[])call.invoke(new Object[]{});
but getting the exception as-
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which
is NOT expected, in something it was trying to deserialize.
at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDe
serializer.java:145)
at org.apache.axis.encoding.DeserializationContext.startElement(Deserial
izationContext.java:1035)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.ja
va:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElemen
t.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at WSClientTest.main(WSClientTest.java:36)
Execution failed. Exception: org.xml.sax.SAXException: SimpleDeserializer encoun
tered a child element, which is NOT expected, in something it was trying to dese
rialize.
How to resolve it?
Regards,
Amarja

Similar Messages

  • Reciver Axis adapter error

    Hi,
    My interface is RFC to Webservier synchronous here i am iusnig SOAP Axis adapter for NTLM authentication.
    I am getting the below error in my receiver SOAP Axis adapter
    Information MP: processing local module localejbs/AF_Adapters/axis/HandlerBean
    12.01.2012 08:12:39.287
    Error MP: exception caught with cause org.xml.sax.SAXException: Bad envelope tag:  html
    Thank you
    Srinivas

    Hi Srinivas,
    Try having a look at this [OSS Note 1039369 - FAQ XI Axis Adapter|https://websmp130.sap-ag.de/sap(bD1wbCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1039369]. You will find an FAQ for Axis Adapter there. Also, see a similar thread here: Error in SOAP Sender Communication Channel.
    Hope this helps,
    Grzegorz

  • Axis timeout error when running long query

    Hi all,
    we've encountered a timeout problem trying to call webservice that responses in long delay. Error we got comes from axis library:
    java.net.SocketTimeoutException: Read timed out
    As I know, default timeout value for axis is 60 s. Is there any way to change it in XMLP?

    Hi Tim,
    Thanks for the follow-up!
    Is there any way we can tweak this manually for now for the version 5.6.2 of XML Publisher? I don't feel like its time now for us to go forward to BI Publisher 10.1.3 since we are late in our delivery but we will certainly evaluate the possibility of upgrading it to 10.1.3 for the next delivery. I just got a SR soft closed saying:
    "If they are putting it into 10.1.3.4 then they do not have a fix yet and you are asking for a backport 4 versions back which is unlikely.
    But you should ask in the thread."
    So thats what I'm doing now, hoping its possible! Up to now, we haven't found any workaround for this issue.
    Thanks for your help!

  • Axis wsdltojava error

    when trying to use the wsdltojava that comes along with the axis package, I encountered the following error. Can someone please help me to fix this error?
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
    java.io.IOException: Type {http://interfaces.common.generic.wss.francetelecom.com}SetSimCardRequest is referenced but not defined.
    at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:653)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:533)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:506)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:483)
    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
    at java.lang.Thread.run(Thread.java:543)

    That doesn't cause any problem in creation of java files. The non-inclusion of activation and mail modules will allow the proper functionality of wsdl2java. I suppose it's just a problem associated with the namespace definition and import. I found this tip after I posted the message on the forum. Thanx anyway for your reply.

  • Axis intall error

    Hi, I try to install Apache Axis. But after i successfully intall that , I click the "validate". There are error occurs. The error message are :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler (CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. "
    It seems that Java_home has not added, so i add the "Java_home = D:\j2sdk1.4.2_05" in the enviroment
    variable in WinXP, but error still exists. So, anyone can help me ? Thanks firstly.

    Thank you. I already set up JAVA_HOME enviroment and direct it to the D:\j2se....(sdk directory) , however, it does not work. So i searched the installation notes and find i may copy all the files located under the ../axis/webapps/lib/ * into /Tomcat/common/lib , so i did it again . Still does not work . Can u see wherer is wrong, anyway, i use WinXP.
    Thank u .

  • Axis Debug Error

    Hello,
    While I call a method in Axis 1.4 and WSS4J 1.5.2 environment I got the following error.
    NoSuchMethodError:aMethod(Ljava.lang.String;Ljava.util.Vector);
    I passed the argument String and empty Vector.As per the review's while we are using old API's there's chance to display this error but I used latest jar files, please let me know how i can fix this problem
    Thanks

    I don't know much about this. But VB6 does not run 64 bit only 32 bit although VB6 apps can run on 64 bit systems they just can't use 64 bit capabilities. Like
    Long data type in VB.Net which is 64 bit.
    I did find a link to an English copy of the .PDF from Heidenhain for the IK220 PCI counter card which for some reason a NASA Infrared Telescope Facility in Hawaii has a link to on the internet.
    NASA Infrared Telescope Facility Hawaii Edu
    You can see in the below image the types VB6 uses (VB6 Longs I think are 32 bit which is Integer or UInteger I suppose in VB.Net). Perhaps all you need to do is evaluate the types the VB6 code says to use and alter that so your code equates to the appropriate
    data type.
    Data Type Summary (Visual Basic)
    La vida loca

  • Axis Underscore Error

    I'm trying to generate the WSDL for a webservice I built. It
    generates fine on CF 7, but on my 6.1 install I am getting a weird
    Axis Error stating underscores are not allowed in variable names.
    Can anyone offer any insight on this? I've googled this to death
    and see nothing.
    AxisFault
    faultCode: {
    http://xml.apache.org/axis/}Server.generalException
    faultString: [coldfusion.xml.rpc.CFCInvocationException :
    Avoid using "_" (underscores) in variable names.]

    That doesn't cause any problem in creation of java files. The non-inclusion of activation and mail modules will allow the proper functionality of wsdl2java. I suppose it's just a problem associated with the namespace definition and import. I found this tip after I posted the message on the forum. Thanx anyway for your reply.

  • SPML WebService - Axis Client Error

    Hello Experts,
    I have a requirement where the OIM self service functionality (Change Password , Challenge Answer ) and the help desk functionality (Reset password , Account unlock) needs to be done from outside of OIM , I mean from some other application (e.g., portal) .
    I understand , i should use the SPML web service , So I have deployed the same in weblogic as per the document and created the web service client using axis.
    I am getting error "No serializer found" when i test this with a standalone java program.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.io.IOException: No serializer found for class com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl in registry org.apache.axis.encoding.TypeMappingDelegate@ef137d
    faultActor:
    faultNode:
    faultDetail: {http://xml.apache.org/axis/}stackTrace:java.io.IOException: No serializer found for class com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl in registry org.apache.axis.encoding.TypeMappingDelegate@ef137d
         at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1507)
    and below is my java code,
                   URL url = new URL("http://localhost:7001/spmlws/OIMProvisioning?wsdl");
              QName serviceName = new QName("http://xmlns.oracle.com/OIM/provisioning", "OIMProvisioning");
              QName portName = new QName("http://xmlns.oracle.com/OIM/provisioning", "OIMProvisioningPort");
              SOAPMessage request = MessageFactory.newInstance().createMessage(null,new FileInputStream("activeRequest_x_User.xml"));
    OIMProvisioningLocator loc = new OIMProvisioningLocator("http://localhost:7001/spmlws/OIMProvisioning?wsdl", serviceName);
              OIMProvisioningPort port = loc.getOIMProvisioningPort();
              Object obj = port.processRequest(request);
    Am i missing anything?
    Thanks & Regards
    INIYA

    Any clue?

  • URGENT!!WAD AXIS Display Error in EP!!

    Hi Guys!!
      We r using WAD in our project.I dont know When I am executing it in Enterprise Portal,I am not able to see the X & Y axis displays..
    Could anyone help me out where I have to do change to get the axis display???
    Thanx in advance
    Raj.

    Hi Raj,
    You can upload your role again and then check your WAD in EP.
    Regards
    Rajesh

  • HTTP (Axis) Receiver Adapter error: The security context token is expired or is not valid

    Hi Experts,
    We are required to send a message through PI 7.31 (single stack) in a Soap-to-Soap scenario connecting to a Soap 1.2 Web Service.
    We are getting a Security Context Token expired or Invalid error.
    Please help us resolving this error.
    Thanks in advance!
    The Channel Configurations are as follows:
    Processing sequence:
    Module configurations:
    1.
    2.
    3.
    4.
    Best Regards
    Vikram

    Hi all !
    First of all, thanks for your answers..
    Stefan Grube:
    Itu2019s not a Adapter Module.
    The module tab  following configuration
    Processing Sequence:
    AF_Adapters/axis/AFAdapterBean     Local Enterprise Bean     afreq
    AF_Adapters/axis/HandlerBean                     Local Enterprise Bean     xireq
    AF_Adapters/axis/HandlerBean                     Local Enterprise Bean     trp
    AF_Adapters/axis/HandlerBean                     Local Enterprise Bean     dcres
    AF_Adapters/axis/HandlerBean                     Local Enterprise Bean     xires
    AF_Adapters/axis/AFAdapterBean     Local Enterprise Bean     afres
    Module Configuration
    xireq          handler.type     java:com.sap.aii.axis.xi.XI30OutboundHandler
    trp          handler.type     java:com.sap.aii.adapter.axis.ra.transport.http.HTTPSender
    trp          module.pivot     true
    xires          handler.type     java:com.sap.aii.axis.xi.XI30OutboundHandler
    How can i know if those values are correct ?
    Srinivas Reddy:
    Thanks for the documentation
    I have applied SAP Note 11016021 and the error changed, now it says:
    Axis: fatal error in invocation: java.lang.NoSuchMethodError: com/sap/aii/axis/xi/XIUtils.setOperation(Ljava/lang/String;Lorg/apache/axis/MessageContext;)V
    Message processing failed. Cause: com.sap.engine.services.ejb.exceptions.BaseTransactionRolledbackLocalException: Exception thrown in method process. The transaction is marked for rollback.
    Edited by: Antonio Guzman on Jul 9, 2008 5:29 PM

  • Problem with Dynamic Configuration in SOAP-AXIS adapter..!!!

    Hi ,
    Idoc> XI>SOAP-AXIS
    I am doing a scenario where I need to pass the URL dynamically in SOAP-AXIS adapter by taking the SNDPRN of Idoc.
    If SNDPRN = 100 , message has to go to  http://10.190.25.16:8210/file/receiver
       SNDPRN = 200 , message has to go to  http://20.180.26.16:8210/file/receiver
    It is working correctly when I tried for single receiver. When I' tried to use DynamicConfiguration, it is coming in SOAP document but it is not working and not passing to correct channel.  According to this note 1039369, I mentioned the following modules.
    AF_Adapters/axis/AFAdapterBean  --->                 afreq
    AF_Adapters/axis/HandlerBean      --->                  xireq 
    AF_Adapters/axis/HandlerBean      --->                  dc
    AF_Adapters/axis/HandlerBean       --->                 remover        
    AF_Adapters/axis/HandlerBean       --->                 trp
    AF_Adapters/axis/HandlerBean        --->                xires       
    AF_Adapters/axis/AFAdapterBean    --->               afres
    xireq ->  handler.type-> java:com.sap.aii.axis.xi.XI30OutboundHandler
    dc    ->  handler.type-> javasap.aii.axis.xi.XI30DynamicConfigurationHandler
    dc   --->   key.1 --->      write http://sap.com/xi/XI/System/SOAP TServerLocation
    dc    --->          location.1  --->         context
    dc     --->         value.1      --->        transport.url
    remover    --->  handler.type    --->   java:com.sap.aii.axis.soap.HeaderRemovalHandler
    remover     ---> namespace    --->      http://sap.com/xi/XI/Message/30
    trp         --->     handler.type   --->    java:com.sap.aii.adapter.axis.ra.transport.http.HTTPSender
    trp           --->  module.pivot  --->     true
    xires     --->    handler.type   --->    java:com.sap.aii.axis.xi.XI30OutboundHandler
    and I am getting the below error in SOAP-AXIS channel
    Error Axis:    error in invocation: java.lang.IllegalArgumentException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Error MP:     Exception caught with cause java.lang.IllegalArgumentException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Error           Exception caught by adapter framework: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage: java.lang.IllegalArgumentException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Kindly let me know if anyone has any idea what might be wrong?
    Thanks
    Deepthi

    I have a similar problem. I also like to add some header fields to my message und that's way I'm trying to use the AXIS adapter. (Axis adapter FAQ question 30) Unfortunately I'm getting exactly the same error message:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.IllegalArgumentException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage
    Deepthi, you wrote that you have missed one jar file. Can you remember which file it was?

  • Error -20023 internal software error

    Hola a todos. Soy un nuevo usuario del labview y mientras intento aprender algo me he topado con un error que no entiendo a la salida de un filtro:
    Software error ocurred in no asociated comand id on axis control error -20023 internal software error please contact ni for suppor
    Lo que hace el programa no es problema. La cosa es que si quito el filtro funciona bien.
    Para hacerlo funcionar utilizamos una señal simulada de una 9239 creada con MAX.
    Si alguien puede darme alguna idea, se lo agradeceré un monton.
    Attachments:
    prueba3.vi ‏291 KB

    Hola Gonzalo el código de error es de un filtro y el VI que estas utilizando para interpretar los errores no te da una descripción adecuada porque ese es para Motion, y en este caso no lo estas usando por eso la descripción del error no tiene sentido.
    Aquí el erro puede ser por poner rangos inválidos en la frecuencia de muestre, o corte, o debido a que no hay información en el waveform. La siguiente liga tiene mas información:
    http://digital.ni.com/public.nsf/allkb/ABBD3A7BC25E17C8862561270058A4A0?OpenDocument
    Saludos
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Axis SOAP sender failed PI7.11

    Send :
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body>
              <m:add xmlns:m="http://DefaultNamespace" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                   <i1 xsi:type="xsd:int">1</i1>
                   <i2 xsi:type="xsd:int">2</i2>
              </m:add>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    to   Axis SOAP
    http://netwavetest:8080/axis/services/Calculator   
    get
    <?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:addResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://DefaultNamespace">
                   <addReturn xsi:type="xsd:int">3</addReturn>
              </ns1:addResponse>
         </soapenv:Body>
    </soapenv:Envelope>
    But send  to  XI
    http://netwavetest:50000/XIAxisAdapter/MessageServlet?senderParty=&senderService=DEMO&receiverParty=&receiverService=&interface=add1&interfaceNamespace=http://soap/axis
    get error in cc:
    message not processed: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Application:EXCEPTION_DURING_EXECUTE:
    I tried Axis(http) and SOAP(http), none works.
    I used XMLspy, and I did login  when I post SOAP to XI.
    When I try this scenario in PI 7.0 system, I got the same error.
    I have no idea now.
    Thanks for your time.

    It makes sense.
    When I used Axis SOAP sender adapter,  got the first error.
    When I used SOAP sender adapter, got the second error.
    WSDL from PI ID.
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="add1" targetNamespace="http://soap/axis" xmlns:p2="http://netwavetest:8080/axis/services/Calculator" xmlns:p1="http://soap/axis" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:documentation/><wsp:UsingPolicy wsdl:required="true"/><wsp:Policy wsu:Id="OP_add1"/>
    <wsdl:types><xsd:schema targetNamespace="http://netwavetest:8080/axis/services/Calculator" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://netwavetest:8080/axis/services/Calculator">
    <xsd:element name="addRequest" type="addRequest" xmlns=""/>
    <xsd:element name="addReturn" type="xsd:int"/></xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:complexType name="addRequest"><xsd:sequence>
    <xsd:element name="i1" type="xsd:int"/><xsd:element name="i2" type="xsd:int"/></xsd:sequence></xsd:complexType></xsd:schema></wsdl:types>
    <wsdl:message name="p2.addRequest"><wsdl:documentation/>
    <wsdl:part name="addRequest" type="addRequest" xmlns=""/></wsdl:message>
    <wsdl:message name="p2.addResponse"><wsdl:documentation/>
    <wsdl:part name="addReturn" type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema"/></wsdl:message>
    <wsdl:portType name="add1"><wsdl:documentation/><wsdl:operation name="add1">
    <wsdl:documentation/><wsp:Policy><wsp:PolicyReference URI="#OP_add1"/></wsp:Policy>
    <wsdl:input message="p1:p2.addRequest"/><wsdl:output message="p1:p2.addResponse"/>
    </wsdl:operation></wsdl:portType><wsdl:binding name="add1Binding" type="p1:add1">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"/><wsdl:operation name="add1">
    <wsdlsoap:operation soapAction="http://sap.com/xi/WebService/soap1.1" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"/>
    <wsdl:input><wsdlsoap:body use="literal" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"/></wsdl:input>
    <wsdl:output><wsdlsoap:body use="literal" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"/></wsdl:output></wsdl:operation>
    </wsdl:binding><wsdl:service name="XI_6ef9141ba9383daf91ba52b9fdfd85e9_Service"><wsdl:port name="HTTP_Port" binding="p1:add1Binding">
    <wsdlsoap:address location="http://netwavetest:50000/XISOAPAdapter/MessageServlet?senderParty=&amp;senderService=DEMO&amp;receiverParty=&amp;receiverService=&amp;interface=add1&amp;interfaceNamespace=http%3A%2F%2Fsoap%2Faxis" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"/></wsdl:port>
    <wsdl:port name="HTTPS_Port" binding="p1:add1Binding">
    <wsdlsoap:address location="https://netwavetest:50001/XISOAPAdapter/MessageServlet?senderParty=&amp;senderService=DEMO&amp;receiverParty=&amp;receiverService=&amp;interface=add1&amp;interfaceNamespace=http%3A%2F%2Fsoap%2Faxis" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"/></wsdl:port></wsdl:service></wsdl:definitions>
    And how to set  rpc-styled or  document-styled, in PI adapter or Axis runtime?

  • Error when invoking webservice from ODI

    Hi all,
    When I execute my ODI scenario ( This scenario call a BPEL websevrice ) ,I Have this error ,
    please have you any idea,
    com.sunopsis.wsinvocation.SnpsWSInvocationException: Error doing JNDI lookup on target jdbc/PRT_DBDS
         at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
         at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.G(g.java)
         at com.sunopsis.dwg.dbobj.SnpScen.a(SnpScen.java)
         at com.sunopsis.dwg.dbobj.SnpScen.localExecuteSync(SnpScen.java)
         at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java)
         at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.h.A(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:736)
    Caused by: Error doing JNDI lookup on target jdbc/PRT_DBDS
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:662)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:1792)
         at com.sunopsis.wsinvocation.client.a.a.d.a(d.java)
         ... 29 more
    Caused by:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
    faultSubcode:
    faultString: Error doing JNDI lookup on target jdbc/PRT_DBDS
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:Error doing JNDI lookup on target jdbc/PRT_DBDS
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:662)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:1792)
         at com.sunopsis.wsinvocation.client.a.a.d.a(d.java)
         at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
         at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.G(g.java)
         at com.sunopsis.dwg.dbobj.SnpScen.a(SnpScen.java)
         at com.sunopsis.dwg.dbobj.SnpScen.localExecuteSync(SnpScen.java)
         at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java)
         at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.h.A(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:736)
         {http://xml.apache.org/axis/}hostname:odiprd.gov.co
    Error doing JNDI lookup on target jdbc/PRT_DBDS
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:662)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:1792)
         at com.sunopsis.wsinvocation.client.a.a.d.a(d.java)
         at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
         at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.G(g.java)
         at com.sunopsis.dwg.dbobj.SnpScen.a(SnpScen.java)
         at com.sunopsis.dwg.dbobj.SnpScen.localExecuteSync(SnpScen.java)
         at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java)
         at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.h.A(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:736)
    Thanks
    Edited by: user7305244 on 19 janv. 2011 04:47

    Hi all,
    as many developers I have encountered the famous "java.rmi.MarshallException:(1)Missing end tag for Body or Envelope" during the development of my WS app for J2ME (JSR 172).
    It is correct that is the empty tag <soapenv:Header /> causing this error.
    To fix this error, it is necessary to stop the server to generate this empty header in the response stream.
    I have fixed this error for Axis2: unfortunaly it is necessary to modify a class in Axiom library. This library is used in Axis2 to produce the SOAP response, you can download the source code at http://ws.apache.org/commons/axiom/source-repository.html.
    Here the class to modify:
    axiom\modules\axiom-impl\src\main\java\org\apache\axiom\soap\impl\llom\soap11\SOAP11Factory.java
    by commenting the line 273 in the method called getDefaultEnvelope() to prevent the empty header insertion in SOAP response:
    public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
            OMNamespace ns =
                    new OMNamespaceImpl(
                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                            SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
            SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
            //createSOAPHeader(env); the line to be commented
            createSOAPBody(env);
            return env;
        }Finally you have to recompile Axiom using Maven to obtain the fixed package axiom-impl.jar and to replace this package on the lib repository of your Axis2 server.
    A little tricky to fix this bug but now my app runs perfectly ;)
    Enjoy!
    Romain Pellerin
    http://www.gasp-mobilegaming.org

  • Coldfusion SOAP Exception Error Handling

    Dear All Technology Expert's,
    I have a query related to Coldfusion SOAP services, that is most commonly asked in all the forum's but NONE of them has got answer.
    If there is NO solution so I think Adobe has to come up with some patches so developer can able to do some customization.
    I like to share with you all, in all other language ( PHP, JAVA, .NET etc) this option is available and you can customize the error.
    Ok let me again explain the very basic error:
    SOAP Request:
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header/>
       <soapenv:Body>
       </soapenv:Body>
    </soapenv:Envelope>
    SOAP Response:
      <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>
             <faultcode>soapenv:Server.userException</faultcode>
             <faultstring>java.lang.Exception: Body not found.</faultstring>
             <detail>
                <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">java.lang.Exception: Body not found.
      at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121)...</ns1:s tackTrace>
                <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">Coldfusion Error</ns2:hostname>
             </detail>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    HOW we can customize the error, in all other languages you can simple customize the error like
    Other languages SOAP response:
      <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>
             <faultcode>BODY_NOT_FOUND</faultcode>
             <faultstring>Body is missing in your request</faultstring>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    But the same is NOT possible in Coldfusion, right?
    AS you know it is vulnerability to display exception messages in the response.
    We are developing this web service to access  from other language website (PHP, .NET).
    We are also planning to upgrade server the Coldfusion 11, but do you think there is any solution with latest Coldfusion version.
    Please response only if you know about these issue's or solution. 
    Thanks
    Niyaz

    @Niyaz
    You will gain little by asking the same question in multiple places in the forum. In fact, many might consider it annoying or even spam.
    This question is being discussed in the thread that HaroonTyagi started. (Are you HaroonTyagi, by chance?) I will post an answer there shortly.

Maybe you are looking for

  • How do I set default dvd drive for burning

    I am looking for a way to set a default dvd writer. The system I am working on has multiple writers attached (one is a duplicator). Unfortunately, the software or OS seems to latch on to the most recently added drive. In one instance it defaulted to

  • Populate UDF from API

    Hi, is it possible to populate UDF attribute from API? I have errors when i'm using code like this: tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf"); HashMap user = new

  • Diimensional design (long and deep!)

    Hi, could I have some comments here please, on best practice, and the one that is being proposed? I need a sanity check, please!!! Consider this situation: there are two input files . . . FILE1 contains LEVEL1ID number LEVEL1DESC varchar2 FILE2 conta

  • C6 Email options changed

    Hey everyone, i recently updated my c6 to version 20.0.042 and noticed that the synchronization option of my mail as "SOONEST" has been removed from the list and replaced with "MANUAL". Can please anyone help me get the soonest option for my mail syn

  • Price conditions PO

    Hi Gurus! I´ve a problem whit a price conditions in PO. Scene: I have a price that is added manually to a fixed value. For example for $ 1000. It´s a position price condition. The amount of the position is 100 units. Well, The problem here is that wh