SOAP Javascript request

Hi
Struggling with a SOAP service which we cant get to work. I'm not so sure that anyone here can help me out since it is some special circumstances, but it's always worth a try. Some background first:
We need to have secure communication with the web service, so no direct communication with the wsdl from Internet. Yet, the pdf form should be able to talk to the webservice at any time. Our first intention was to do this by running server side javascript, which obviously isnt possible since SOAP isnt supported server side. Then, we were trying to run it client-side with a call to our form server environment and catching the SOAP call there. But, then we realized that the SOAP.address gets the one that is inside the wsdl, which isnt possible since we want to tunnel it through our server to get secure communication. So, we cant use service = SOAP.connect and later service.getData() (fictional name) although that worked like a charm if we didnt have the security issues. With SOAP.connect and service.getData() as described above, everything worked just fine except for the fact that it would require an open connection through the firewall.
Now, we are stuck with trying something else. What I am trying for the moment is a SOAP.request but for some reason, it wont work and Im getting pretty frustrated. I really cant tell whats wrong although Ive been trying various different things. Following your javascript manuals doesnt help much, no working result at all. And maybe the strangest thing has been the log that has been telling me that the call to our server has always been lacking the service call and parameters no matter how much Ive been inserting them as the manual tells me to do.
Is there anybody with knowledge about the subject that can share that with me and tell me how to really make it work? The code below is just one of many examples that Ive tried, so I dont expect it to be correct for the moment in any way you know, after a couple of hours of frustration you get pretty delirious and hardly separates sunshine from rain anymore so if you can tell me what is supposed to work I would be very grateful.
var datum = new Date();
var data = SOAP.request({cURL: "http://computername:9991/BoU/path/wsdl", oRequest:{"http://computername:9991/BoU/path/:GetData":{"Date":datum}}});

It's not about enabling CORS in Firefox, relax.
CORS must be enabled at the server-side, this is an error for security, Every browser throws this error.
In order to activate CORS in your server you must send these headers:
Access-Control-Allow-Origin: <yourUrlToAllowAccess>
[https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS?summary More about this at MDN]
+ Please test your code on other browsers before acting like this, if it's the same across browsers, [http://stackoverflow.com stackoverflow] is the place to ask your question.

Similar Messages

  • XI SOAP-ENV request!!!

    Hi all,
    I have a problem that is not resolved yet and I’m feeling quite worried because I used up all the hypotheses that knew!!! I did a test that it gave a light, where problem are placed, but I don’t know how I can fix it. I hope that somebody could help me…
    Calling the web service directly via an external tool as a web service client using soap sender adapter, the request SOAP-ENV is:
    <?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:xs="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'><b><ns1:send xmlns:ns1='prt:service:pt.edp.sync'><send_1_param2 xsi:type='xs:string'>teste</send_1_param2></ns1:send></b></SOAP-ENV:Body></SOAP-ENV:Envelope>
    And it works fine!
    Using the same external tool also as a web service client, but now trough XI, the SOAP-ENV request is a little bit different: (the tag with send method it lack!!!)
    <b>…
    <ns1:send_1_param2 xmlns:ns1='prt:service:pt.edp.sync'>teste</ns1:send_1_param2>
    …</b>
    It seams that method <b>“send”</b> is not being invoked, if you look to the previous SOAP-ENV you see the tag with method <b><ns1:send …></b> before tag with input parameter <b><ns1:send_1_param2…></b> I think that this tag should come into soap request invoked by XI. For one reason that I don’t know, this tag doesn’t come... and when I look to the log of web service provider invoked from XI (is a SAP EP) the log gives me this message:
    <b>Method with name send_1_param2 is not defined in wsdl file
    [EXCEPTION]     
    java.lang.NoSuchMethodException</b>
    It seams that XI wants to invoke a method with a wrong name <b>“send_1_param2”</b>; the method to be invoked should be <b>“send”</b> and not <b>“send_1_param2”</b>!!! Can anybody explain me why this happening? Did I forget something, some configuration steps?
    Any help are appreciated.
    Regards,
    Ricardo.

    Hi guys,
    Here the answer… like I promise!
    All I get is a little explanation about web services rpc-styled in SOAP FAQ (note 856597) under question: “Q: Can I convert an RPC styled WSDL to a document styled WSDL?”
    Some RPC styled service implementations have problems with such non conformant SOAP service. Therefore, we also need to adjust the message accordingly.
    First we need to find what kind of elements (tags) are missing on the soap request/response and add these elements (adjust the message accordingly).
    I fixed my problem using XSLT extension (ABAP Engine). All I did was following the steps provided in the Robert Eijpe weblog /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
    But you also could create your own request using graphical mapping and add the missing tags. In my case a just only needed to add <operator> tag to invoke the right method.
    I test with both (XSLT and Graphical mapping) and it works
    I hope it helps anybody with identical problems.
    Cheers,
    Ricardo.

  • URL and PORT for SOAP SENDER request

    Hi
    according to SAP doc the URL to SOAP SENDER request is:
    http://IP:PORT/XISOAPAdapter/MessageServlet?channel=:SERVICE:SOAPCOMMCHANNEL
    Where do I find the IP and the PORT to use?
    br

    Hi,
    The IP is of your XI System.
    PORT number depends on the instance number. Usually it is 00 for default instance (then port no will be 8000). click on propose URL and you will get it.
    Also you can go to SMICM transaction in your XI system and choose Goto-> HTTPS Server->Display data to get the port no.
    Regards,
    Jitender

  • SOAP/HTTP request

    Hi,
    I need to build a BPEL process that will receive a SOAP/HTTP request.
    can any one explain the work arround.
    1. Do I need the schema for incoming SOAP message?.
    2. Do i need to change the wsdl?.
    3. Will BPEL support SOAP attachments if so is there any work arround?.
    I am currently using Oracle BPEL 10.1.2.0.2.
    Your help would be appreciated..
    Thanks,
    Mamatha

    The WSDLs in 10.1.3.1 will take SOAP requests - not sure about what you would have to do for 10.1.2.x
    Knowing the XSD of the SOAP request, and being able to import it as a schema will make things a lot easier - use the SOAP XSD to replace the payload variable element for request and response message types.
    Not sure about attachments...

  • Can't find where to update SOAP header request on a Web Service

    Hello,
    I am consuming a certain Web Service from a remote Server and succefully created a client proxy for it.
    This Web Service requires a String parameter (which is the licence key) to be inserted in the SOAP request header. I've searched at the client proxy I created under Virtual Interface, Web Service Definition and under Web Service Configuration but couldn't find an option which allows me to modify the SOAP header request.
    At this link:
    http://help.sap.com/saphelp_nw04/helpdata/EN/a2/99af4e693dee43a0519e029549647b/content.htm
    There is an explanation on how to transfer existing request parameters from the SOAP body to the SOAP header, but I want to add the header new parameter except the exsiting parameters the Web Service request expects.
    I can of course write the request myself but than I loose the whole wizard advantage...
    Can someone please tell me where can I find it?
    Roy

    Ralph Landry1, your link just sends them to the links I provided.
    If you have an iPod touch:
    For Windows: See iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
    For Mac OS X: See iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X

  • Reading soap http request packets

    im writing a class to obtain the soap http request from client on the server side. im not sure if i should be using the java.net class or the httpurlconnection or any other similar class. anyone have suggestions?
    any tutorials on that? thanks

    You can also use JAX-WS which can be found at http://jax-ws.dev.java.net.

  • Error while SOAP Client Request , can u please Help me ?

    The following Error I am getting While the Java Guys trying ti call the Webservice , which i have defined in X I .
    <b>
    Main....
    Main....222222
    Reading WSDL document from 'http://xidev:50100/XISOAPAdapter/MessageServlet?channel=:BS_DISTANCE_CHECK_SOAP:CC_DistanceCheck_SOAP_Sender'
    Done setting...
    log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle).
    log4j:WARN Please initialize the log4j system properly.
    WSDLException (at /html): faultCode=INVALID_WSDL: Expected element 'definitions'.:</b>
    <b>
    <b>
    My scenario is like I want via web service I need to pass request to RFC and get the response back . This calling webservice is external java application .</b></b>
    Can u please tell me What steps i have to do in XI ?
    I have to do synchronous Interface between RFC and webservice right ?
    <b>First I have done this scenario by designing IR and in Configuration I have used SOAP Sender and RFC Receiver adapter . Using Synchronous Interface</b>
    Using Tools -- > Define WebService . I have Defined that as WebService . I has creatd the WSDL File for me.
    I have given the SWDL file and the URL like the following
    http://xidev:8021/XISOAPAdapter/MessageServlet?channel=:BS_DISTANCE_CHECK_SOAP:CC_DistanceCheck_SOAP_Sender
    If i copy and paste this URL in my pc .It is showing the Message Servlet Status OK . and some informations also it is giving .
    But the java guys try to use this URL in their web service calling module it is not working .
    The way what i have done is corret ? or something i have to do ?
    What input i have to give to Java Guys to call the webservice ?
    <b>
    I have tested in AltovaXML Spy it is working</b>
    Can you please give your suggestions asap
    Regards .,
    V.Rangarajan.

    I don't think the code you are using will work with SFTP/SSH server. The code you are using is for FTP which is a different protocol.
    Try the following API
    http://www.jscape.com/sftp/

  • SOAP Receiver: Problem with SOAP Multipart Request (wsdl:part)

    Dear PI experts,
    our partner provided a WSDL with the following definition (I modified it to keep it simple and showing the principles)
       <wsdl:message name="nameOfMessage">
          <wsdl:part element="part1" name="header" />
          <wsdl:part element="part2" name="parameters" />
          <wsdl:part element="part3" name="attachment" />
       </wsdl:message>
    After importing this WSDL in ESR, I found the following definition on tab 'WSDL':
             <xsd:complexType name="nameOfMessage">
                <xsd:sequence>
                   <xsd:element name="header" type="authentication" />
                   <xsd:element name="parameters" type="businessDatal" />
                   <xsd:element name="attachment" type="Binary" />
                </xsd:sequence>
             </xsd:complexType>
    When creating the request message in PI it looks as follows:
    <nameOfMessage>
    <header/>
    <parameters/>
    <attachment/>
    </nameOfMessage>
    However our WebService provider expects the following:
    <soap:env>
    <authentication/>
    <parameters/>
    <attachment/>
    </soap:env>
    When using SoapUI and importing the WSDL the request message looks as expected by the web service provider and the part names are resolved.
    I could try to convert the request using XSLT but this does not seem to be a best practice approach.
    Do you have any advice on how to handle this issue?
    Thank you very much.

    Hi Florian,
    I modified some WS to be handled by another systems, and sometimes, when the SOAP adapter is involved, you send a Request to PI (that has NOT the same structure, than the declared in the MM) but it takes the req. anyway.
    Did you try sending a request?
      Juan.

  • SOAP RECEIVER: Possible to change the soap header request

    Hi
    Is it possible to change what is included in the soap header like namespaces (.. xmlns:ns="http://what.com"
    Specifically I need to have the "http://Strange.org/thisis.xsd" (see below) included in the header and the <ns:pi-create> included in SOAP-ENV
    <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"
    xmlns:ns="http://Strange.org/thisis.xsd">
    <SOAP-ENV:Body>
    <ns:pi-create>
    <request>
    <request-data>...
    </request-data>
    </request>
    </ns:pi-create>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Hope somebody can help
    Cheers

    Hi Bowie,
    1.You can change the Namespace. condition is no obj's under the namesapce then only it's possible otherwise u can't.
    2.create a new namesapce what ever u want and copy all the obj's under that namesapce.finally delete the previous one.
    XMLAnonymizerBean
    Use
    You use this module to anonymize XML elements and attributes by removing namespaces or namespace prefixes from the XML document of the main payload.
    You can define a particular namespace prefix for each namespace. You can also change the encoding attribute of the XML declaration.
    Integration
    You can use the module in adapters that can be extended in the module processor.
    Activities
    Entries in the Processing Sequence
    ●      Insert the module before the adapter module.
    If the adapter comprises multiple modules, for information about the position of the module, see: Extending the Module Chain in the Module Processor
    ●      Enter the module name AF_Modules/XMLAnonymizerBean.
    ●      Select the Module Type Local Enterprise Bean.
    ●      The system proposes a module key.
    Entries in the Module Configuration
    ●      anonymizer.acceptNamespaces
    Enter a list of namespaces and their prefixes that are to be kept in the XML document as follows: namespace1 n1 namespace2 n2 u2026
    To enter a namespace without a prefix, enter '' (two single quotation marks).
    Any namespaces you do not specify are removed from the XML document.
    ●      anonymizer.quote
    Specify the character to be used to enclose the attribute values.
    The default value is '. The parameter is optional.
    ●      anonymizer.encoding
    To use a code page other than UTF-8, enter it.  The parameter is optional.
    For example, enter ISO-8859-1.
    Example
    The anonymizer.acceptNamespaces parameter has the following value:
    urn:sap-com:document:sap:rfc:functions rfc urn:sap-com:document:sap:soap:functions:mc-style rfc
    ●      Payload before using the XMLAnonymizerBean:
    <Z_PAYMITEM_GET_LIST
      xmlns="urn:sap-com:document:sap:rfc:functions"
      xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <I_ACCOUNTIDENT xmlns="">
        <ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
        <BANK_COUNTRY>DE</BANK_COUNTRY>
        <BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
      </I_ACCOUNTIDENT>
    </Z_PAYMITEM_GET_LIST>
    ●      Payload after using the XMLAnonymizerBean:
    <?xml version='1.0' encoding='utf-8'?>
    <rfc:Z_PAYMITEM_GET_LIST
      xmlns:rfc='urn:sap-com:document:sap:rfc:functions'>
      <I_ACCOUNTIDENT>
        <ACCOUNT_NUMBER>0080000094</ACCOUNT_NUMBER>
        <BANK_COUNTRY>DE</BANK_COUNTRY>
        <BANK_COUNTRY_ISO>DE</BANK_COUNTRY_ISO>
      </I_ACCOUNTIDENT>
    </rfc:Z_PAYMITEM_GET_LIST>
    with rgds,
    MFH

  • SOAP Login Request Problem

    Hi,
    I have been trying to send a login request via Pear SOAP, without success.  Any ideas about what is wrong with the request?
    The Request:
    POST /dswsbobje/services/Session HTTP/1.0
    User-Agent: PEAR-SOAP 0.12.0-beta
    Host: 192.168.130.52
    Content-Type: text/xml; charset=UTF-8
    Content-Length: 615
    SOAPAction: "http://session.dsws.businessobjects.com/2007/06/01/login"
    Connection: close
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:ns4="http://session.dsws.businessobjects.com/2007/06/01">
    <SOAP-ENV:Body>
    <ns4:login>
    <credential xsi:type="EnterpriseCredential" AuthType="secEnterprise" Login="Administrator" Password="Password" Domain="ptgdw3" ReportedHostName="ptgdw3:6400"/>
    <version></version></ns4:login>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ... and the response:
    HTTP/1.1 500 Internal Server Error
    Server: Apache-Coyote/1.1
    Content-Type: text/xml;charset=UTF-8
    Date: Wed, 04 Mar 2009 17:52:11 GMT
    Connection: close
    <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.generalException</faultcode><faultstring>java.lang.NullPointerException</faultstring><detail><DSWSException xmlns="http://dsws.businessobjects.com/2007/06/01"><ID xmlns="">S2</ID><Message xmlns="">login exception (Error: WSE 99998)</Message><Operation xmlns="">http://session.dsws.businessobjects.com/2007/06/01/login</Operation><CallStackTrace xmlns="">java.lang.NullPointerException&#xd;
        at com.businessobjects.dsws.session.SessionSkeleton.login(Unknown Source)&#xd;
        at com.businessobjects.dsws.session.SessionMessageReceiverInOut.invokeBusinessLogic(Unknown Source)&#xd;
        at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)&#xd;
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)&#xd;
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)&#xd;
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)&#xd;
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)&#xd;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)&#xd;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)&#xd;
        at com.businessobjects.dsws.wsc.common.axis.FlashFilter.doFilter(Unknown Source)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)&#xd;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)&#xd;
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)&#xd;
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)&#xd;
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)&#xd;
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)&#xd;
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)&#xd;
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)&#xd;
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)&#xd;
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)&#xd;
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)&#xd;
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)&#xd;
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)&#xd;
        at java.lang.Thread.run(Thread.java:595)&#xd;

    Hi Matt,
    Unfortunately there isn't anything currently available on the proper structure of the soap request to communicate with the web services SDK.  What I would recommend doing is creating a regular web services SDK app (Or just download a sample), and then use a sniffer to look at the soap messages being sent back and forth.  You should be able to take those messages and modify them to suit your needs.
    Shawn

  • Incoming XML validation for SOAP adapter request

    Hi,
    Does anyone know of a method to validate incoming XML request against the relevant XSD definition and return a SOAP fault message to the calling application ?
    I guess this would involve BPM unless there is some sort of module that can be used.
    Please advise.
    Kind regards
    Colin.

    Hi Michal,
    Would you suggest a simple BPM or an adapter module ?
    I would hope a simple BPM would be the way it could be done.
    Cheers
    Colin.

  • What's the easiest way to make a SOAP client request in java?

    I need to make a request to a website that provides tv listings. Basically I just need to make a simple SOAP request for the listings and the site provides them in XML format.
    What's the easiest way to do this? Do I need to download a package like Axis2 or JAX-WS? These seem kind of overkill for what I want to do, since I don't need to run a server. Is there something in the Java standard libraries that will do this? Is it difficult to just write the code for this my self?

    I've been trying to do it with HTTP POST commands. Here is the sample SOAP envelope that the site gives:
    <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:download xmlns:m="urn:TMSWebServices" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                   <startTime xsi:type="xsd:dateTime">2005-02-22T19:00:00Z</startTime>
                   <endTime xsi:type="xsd:dateTime">2005-02-22T21:00:00Z</endTime>
              </m:download>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>I can post this to the URL and it gives me back a generic xml file as a reply with no listings. The problem is that the site requires credentials, so I assume I have to login somehow first. Can anyone tell me how I would do this?

  • Error in SOAP synchronus request.

    Hi,
      I'm trying to make a SOAP call to Salesforce.com. I've created my own soap envelope using xsl(disabled soapenv in the channel).
    <b>Following is my payload:</b>
    <?xml version="1.0" encoding="utf-8"?>
    <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>
          <SessionHeader soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="urn:horizon:sesionmgmt">
             <ns1:sessionId>aaaaaaaa</ns1:sessionId>
          </SessionHeader>
       </soapenv:Header>
       <soapenv:Body>
          <upsert xmlns="urn:enterprise.soap.sforce.com">
             <externalIDFieldName>SAP_Customer__c</externalIDFieldName>
             <sObjects xsi:type="ns1:Account" xmlns:ns1="urn:sobject.enterprise.soap.sforce.com">
                <ns1:Name>EntUpdatee</ns1:Name>
                <ns1:SAP_Customer__c>ExternalId</ns1:SAP_Customer__c>
             </sObjects>
          </upsert>
       </soapenv:Body>
    </soapenv:Envelope>
    <b>This is the error I'm getting in Moni:</b>
    <?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>
      <soapenv:Fault>
       <faultcode>soapenv:Server</faultcode>
       <faultstring>org.xml.sax.SAXException: Deserializing parameter &apos;sObjects&apos;:  could not find deserializer for type Account</faultstring>
       <detail/>
      </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    The strange thing is, If I copy and paste the payload into a soap client, it works fine! So looks like this error is on XI side. If so, how do I fix it?
    Regards,
    Harsh

    I'll check that, but why should it give an error, when it works from a soap client??
    PS: The error in moni is actually:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="HTTP">ADAPTER.HTTP_EXCEPTION</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>HTTP 500 Internal Server Error</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    What I mentioned earlier is the payload... don't know if it makes a diff.

  • How to provide inferred relationship as an input in the SOAP UI request.

    In a single OPA project, I have two separate requests.
    Request 1: All the base INPUTS are provided and an inferred relation is an OUTPUT of the request. The outputs of this request (attributes as well as relationships) is stored in the database. So that it can be retrieved and be used as an Input in some other request.
    Request 2: The inferred relation from Request 1 is retrieved from the database and is provided as INPUT and then the respective OUTPUTS should be derived.
    But when I try hitting the Request 2 (which uses INFERRED RELATIONSHIP as input) it throws me an Error saying "Inferred relationship cannot be set by the user".
    Is there any possible way where we can use the inferred relationship as an input in the request?
    Thanks
    Snehal

    Hi SnehalS,
    Two approaches:
    1. If you keep your inferred relationship in Request 2 you should also provide the input data; which is what you apparently want to avoid.
    2. What I mean is probably best explained in the following example:
    Request 1:
    INPUT: 5 Persons (the person) with their age (the person's age), in global via the relationship "the person's"
    the rulebase identifies the children (age < 18) and adds them to the inferred relationship in global (the identified children)
    OUTPUT: the inferred relationship (the children), and all other output data
    Change the Request to use "the children" instead of "the identified children"
    Request 2: n Persons (the person) with their age (the person's age) in global via the relationship "the children"
    the rulebase does its determination
    OUTPUT: as defined for request 2
    Hope this Helps,
    Darko

  • Javascript request on non well-formed xml file in Safari

    Hi,
    I make an AJAX request to get a non well-formed xml file. On Internet Explorer (domNode is empty) and Firefox (domNode is not empty but a tag "parsererror" is present), I can know if the document is non well-formed but on Safari the request seems to be ok, I get a part of the non well-formed file (until the error).
    I would like to say if I can make the difference between a well-formed xml file and a non well-formed xml file (with an AJAX request) on Safari.
    Thanks
    Julien

    I have built a desktop application that can use these
    calls to check if the xml contained in the document
    called "file" is well formed.
    Ok. So, the application works fine then?
    DocumentBuilderFactory domFactory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder domBuilder =
    lder domBuilder = domFactory.newDocumentBuilder();
         domBuilder.parse(file);
    They are part of the javax.xml.parsers.*; package.
    Problem is that to serve this I need to put it in an
    applet but since I have to write the xml string to a
    file local to the server the applet is not working.
    Huh? You lost me there. Are you getting security exceptions from the applet? If yes, you need to sign the applet. Otherwise, what is not 'working' in the applet compared to the application? Also, why do you need to first write it to a file?
    My question is if anyone knows of some classes in the
    API that will allow me to check if a String of XML is
    well formed or not.
    If the document is not well-formed, the parse() call will throw an exception. Catch this and process as needed.
    I basically need to get a string from a field in a
    data base in XML format and be able to test it
    without first writing it to a document so I can get
    the applet to work.
    If you want to access an external database from an applet, you will need to sign the applet. You should not need to first write it to a file before parsing. Rather, simply use a stream (either InputStream or Reader) and wrap it in a StreamSource object.
    If anyone knows something on this or has an
    alternative suggestion please do tell.
    Thanks.- Saish

Maybe you are looking for

  • Is it possible to add a new language in a movie?

    Hallo everyone. I try to find a way to add a new audio line on an itunes movie. Mostly you get (here in germany) only the german audio line and the original language. Is it possoble to add a new audio line, to see the movie in spanish or something el

  • Column Masking in GUI _UPLOAD

    Hi All, I have to donwload an internal table with header data using column masking. But GUI_DOWNLOAD is downloading data for all the columns. I use one other alternate approach, call GUI_DOWNLOAD function two times, one for Header Data and another fo

  • Not able to change the Valuation class of a Material

    Hi Team, I am not able to change the Valuation class of a Material even if the stock is zero. Please assist. Thanks in advance. Chetan

  • Itune wont open with iphone attached

    iTunes wont open when I attach my iPhone to the computer with the same USB ccable I have been using.  I can open iTunes then all works fine.  In iTunes the option to open iTunes when phone is attached is clicked on. Bob

  • Concurrent managers FNDLIBR growing over 254 Mbytes at peak workloading

    Hello i have a problem that my FNDLIBR processes grow with no limit and take lot of CPU i implemented the note below to bounce processes that take 100mb or more. but i have now FNDLIBR that crrosed 100mb and still not killed maybe someone understand