WebLogic SOAP client to MS SOAP server

An article at
www.perfectxml.com/articles/xml/soapguide.asp?p=on
shows how to invoke a MS SOAP service from an Apache SOAP client.
How would you invoke a Microsoft SOAP service from a WebLogic SOAP client? How
would that client invoke an Apache SOAP service?
Thanks,
Ben

Hi Ben,
I think the attached .zip contains what you are looking for. Copy it into your
$WL_HOME/samples directory before you extract
the contents.
Regards,
Mike Wooten
"Ben Soedjono" <[email protected]> wrote:
>
An article at
www.perfectxml.com/articles/xml/soapguide.asp?p=on
shows how to invoke a MS SOAP service from an Apache SOAP client.
How would you invoke a Microsoft SOAP service from a WebLogic SOAP client?
How
would that client invoke an Apache SOAP service?
Thanks,
Ben[interop.zip]

Similar Messages

  • Interoperability: WSDL-based Java client with MS SOAP server

    Does anybody have the experience with a Java client communicating with Microsoft
    SOAP server based on the WSDL protocol? My initial experiece shows a lot of problems.
    Any information in this regard is appreciated.
    Thanks

    I'm experiencing the same sort of problem too.
    I downloaded Bea Web Service Broker in order to test some MS Soap-based web services
    before developing some Weblogic EJBs which are to use them, since both of them
    (WS Broker and Weblogic EJBs) are said to use the same underlying package of Java
    classes to access any web service.
    Most of the MS web services won't work with this tool. I have problems with remote
    methods that have one or more parameters (the remote methods seem not to get them)
    and also with some web services that raise FileNotFoundExceptions from URLs (rather
    odd to me) on the Broker, despite the fact those URLs are valid.
    Any hint or suggestion will be very appreciated.

  • MS-SOAP Server WLS-Client

    Hi!
    I have an MS-SOAP 2.0 Webservice and i want to call ist from a wls-client. I simply
    tried to change the target url (context.lookup("http://<host>/xyz.wsdl") and i
    got this
    Exception in thread "main" javax.naming.NamingException: i/o failed java.io.FileNotFoundException:
    http://<host>/xyz.wsdl.
    Root exception is java.io.FileNotFoundException: http://<host>/xyz.wsdl
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:545)
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:521)
    at weblogic.soap.WebServiceProxy.getServiceAt(WebServiceProxy.java:171)
    at weblogic.soap.http.SoapContext.lookup(SoapContext.java:64)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at DClient.main(DClient.java:26)
    I can call the WebService via Visual Basic and the WSDL-File is available via
    Browser as well.
    Thanks for Help
    Rene
    p.s. i used the DClient.java example (also tried XMethodClient, with the result,
    that the method was not found!)

    Hi,
    The problem seems that WLS6.1 client sent the Soap message which identified the
    input parameters/values as xsd types, where MS Soap 2.0 Gold clients simply passed
    on the parameters/values. I am not clear on what the Soap 1.1 standard says.
    Maybe BEA or MS engineers or more knowledgable people can give us a better explanation.
    If you need to find more debugging information from MS Soap 2.0 Gold server (IIS
    + Soap 2.0 Gold), you can use the MS Soap 2.0 debugging tool and capture the Soap
    messages passed and the server trace. The posting item number 99 had such traces.
    -Lu Huang
    "Rene Wilms" <[email protected]> wrote:
    >
    i!
    The XMethod-Client works! But only with an Method that returns a String
    and with
    no parameters like getHello(). When you try the XMethodClient on MS-SOAP-Services
    at www.xmethods.com it works, so i don't know what the problem with the
    parameters
    are....
    renne
    "Lu" <[email protected]> wrote:
    We also tried to call a Microsoft Webservice hosted with IIS + Soap2.0
    Gold,
    using a WLS 6.1b client (modified from DClient.java). We got similar
    resoults
    as Rene's. See the posts in this news group: item 99 and 113. Much
    details in
    the forementioned items. This seemed to be an interoperability problems
    between
    MS and BEA. I hope some BEA engineers take a look at the postings now
    from two
    different groups. Any help or clarification would be appreciated.
    -Lu
    "Rene Wils" <[email protected]> wrote:
    Hi!
    When i use a WLS-Service you are right, but i try to use a MS-SOAP
    WebService.
    The URL in the VisualBasic-Programm ist http://<host>/xyz.wsdl, so
    i
    tried the
    same. The target service is a simple DLL, so there is no packaging.
    I'am not sure, if i have to use the lookup-method of the context orthe
    createWebService
    method. Both fails with the FileNotFoundException. But the url in aWebBrowser
    shows the right wsdl-file.
    Did anybody call a MS-SOAP-Service from a Java-Client(WLS-SOAP)?
    thanks
    rene
    "Alan Humphris" <[email protected]> wrote:
    The format of your lookup url in the example you gave didn't look
    complete,
    but
    that might be just your example. It should be somthing like:
    http://host:7001/context/package.EntryPointBeanHome/package.EntryPointBeanHome.wsdl
    I've also seen that error in relation to any jndi lookups that yourentry
    point
    bean maybe making to other beans but where the jndi name you are looking
    up is
    incorrect.
    "Rene Wilms" <[email protected]> wrote:
    Hi!
    I have an MS-SOAP 2.0 Webservice and i want to call ist from a wls-client.
    I simply
    tried to change the target url (context.lookup("http://<host>/xyz.wsdl")
    and i
    got this
    Exception in thread "main" javax.naming.NamingException: i/o failedjava.io.FileNotFoundException:
    http://<host>/xyz.wsdl.
    Root exception is java.io.FileNotFoundException: http://<host>/xyz.wsdl
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:545)
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:521)
    at weblogic.soap.WebServiceProxy.getServiceAt(WebServiceProxy.java:171)
    at weblogic.soap.http.SoapContext.lookup(SoapContext.java:64)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at DClient.main(DClient.java:26)
    I can call the WebService via Visual Basic and the WSDL-File is available
    via
    Browser as well.
    Thanks for Help
    Rene
    p.s. i used the DClient.java example (also tried XMethodClient, with
    the result,
    that the method was not found!)

  • Accessing SOAP server programatically with a client

    Hi!
    I have found lots of documentation on how to send messages to a SOAP server when the xml is already specified. A lot less is written how this should be done programatically, and I can't find the solution to my problem. (I think doing it programatically is more pretty....)
    So, I got my web server up and running (JBoss 4.0.5GA), and the web service is deployed as it should (I've tested it using hard-coded ws request, which succeed).
    I also got a bunch of java files generated using wsdl2java, which I am using to create my request. The first thing I want to do is a simple login.
    The code (stripped a bit for convenience):
    public void run()
                   throws AxisFault, InterruptedException {
              // set up some initial stuff
              SOAPFactory factory = new SOAP12Factory();
              Options options = new Options();
              options.setTo(mTargerEPR);
              // log in to the system
              SOAPEnvelope payload = createLoginDocument(factory);
              // set the action to use for this call
              options.setAction("CAI3G#Login");
              // Non-Blocking Invocation
              ServiceClient sender = new ServiceClient();
              sender.setOptions(options);
              process(payload, sender);
    private SOAPEnvelope createLoginDocument(SOAPFactory factory) {
              LoginDocument loginDocument = LoginDocument.Factory.newInstance();
              LoginDocument.Login login = loginDocument.addNewLogin();
              login.setUserId("admin");
              login.setPwd("admin");
              return toEnvelope(factory, loginDocument);
    private SOAPEnvelope toEnvelope(SOAPFactory factory, XmlObject document) {
              SOAPEnvelope envelope = factory.createSOAPEnvelope();
              // create the header, which must contain sequence id and session id
              factory.createSOAPHeader(envelope);
              if (document != null) {
                   // create the body and include the document provided
                   SOAPBody body = factory.createSOAPBody(envelope);
                   body.addChild(toOM(document));
              return envelope;
    private static void process(SOAPEnvelope payload, ServiceClient sender)
                   throws AxisFault, InterruptedException {
              Callback callback = new Callback() {
                   // currently just print it to test
                   public void onComplete(AsyncResult result) {
                        System.out.println(result.getResponseEnvelope());
                   public void onError(Exception e) {
                        e.printStackTrace();
               sender.sendReceiveNonBlocking(payload, callback);
              // Wait until the callback receives the response.
              while (!callback.isComplete()) {
                   Thread.sleep(1000);
         }The error I receive looks like this:
    2007-05-29 15:30:03,644 [INFO] Axis2 Task - I/O exception (org.apache.axis2.AxisFault) caught when processing request: Can not output XML declaration, after other output has already been done.
    2007-05-29 15:30:03,644 [INFO] Axis2 Task - Retrying request
    2007-05-29 15:30:03,644 [INFO] Axis2 Task - I/O exception (org.apache.axis2.AxisFault) caught when processing request: Can not output XML declaration, after other output has already been done.
    2007-05-29 15:30:03,644 [INFO] Axis2 Task - Retrying request
    2007-05-29 15:30:03,644 [INFO] Axis2 Task - I/O exception (org.apache.axis2.AxisFault) caught when processing request: Can not output XML declaration, after other output has already been done.
    2007-05-29 15:30:03,644 [INFO] Axis2 Task - Retrying request
    org.apache.axis2.AxisFault: Can not output XML declaration, after other output has already been done.
         at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221)
         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
         at org.apache.axis2.description.OutInAxisOperationClient$NonBlockingInvocationWorker.run(OutInAxisOperation.java:405)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.xml.stream.XMLStreamException: Can not output XML declaration, after other output has already been done.
         at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1473)
         at com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(BaseStreamWriter.java:1502)
         at com.ctc.wstx.sw.BaseStreamWriter.doWriteStartDocument(BaseStreamWriter.java:699)
         at com.ctc.wstx.sw.BaseStreamWriter.writeStartDocument(BaseStreamWriter.java:687)
         at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:190)
         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808)
         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:779)
         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808)
         at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:234)
         at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:222)
         at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808)
         at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:418)
         at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:55)
         ... 19 more
    In JBoss, I get this exception:
    15:30:04,285 ERROR [[localhost]] Exception Processing ErrorPage[errorCode=500, location=/axis2-web/Error/error500.jsp]
    org.apache.jasper.JasperException: getOutputStream() has already been called for this response
    Any idea/pointer, someone? All help is greatly appreciated!
    Best regards,
    Peter

    I thought it might be worth to give a printout of the generated xml and the hard-coded, working xml.
    The working one:
    <env:Envelope
         xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:xs="http://www.w3.org/1999/XMLSchema"
         xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
         xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
         env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <env:Header />
         <env:Body>
                 <cai3g:Login xmlns:cai3g="http://schemas.ericsson.com/cai3g1.1/">
                      <cai3g:userId>admin</cai3g:userId>
                      <cai3g:pwd>admin</cai3g:pwd>
                 </cai3g:Login>
         </env:Body>
    </env:Envelope>The one I've generated, when doing a System.out.println() on the variable payload:
    <?xml version='1.0' encoding='utf-8'?>
    <soapenv:Envelope
         xmlns:xs="http://www.w3.org/1999/XMLSchema"
         xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
         xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
         xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
         <soapenv:Body>
              <Login xmlns="http://schemas.ericsson.com/cai3g1.1/">
                   <userId>admin</userId>
                   <pwd>admin</pwd>
              </Login>
         </soapenv:Body>
    </soapenv:Envelope>

  • Can I use SOAP calls to remotely access functions on a SOAP server?

    Hi,
    I've used JavaScript and SOAP with "regular Acrobat" (e.g. Acroforms) to connect to a SOAP server, followed by Acrobat automatically setting up functions that I can call from JavaScript that, courtesy of SOAP, are relayed to the SOAP server for execution.  For example, a SOAP server that implements a Temperature function.  After doing the Net.SOAP.connect, my JavaScript magically has access to the Temperature() function, which is then executed remotely on the SOAP server courtesy of SOAP protocol.
    My question is: With Livecycle Designer and it's XFA-based forms, do I have the same ability to programmatically connect to a SOAP server and automatically have JavaScript functions set up that I can call on the server?  From what I've read, there are LC Submit and Execute operations which interact (e.g. exchange data) with a specified SOAP server, but it isn't clear that LC provides the ability to end up with a set of functions that I can call from my JavaScript that are then executed on the SOAP server.
    Stated more simply: Does LiveCycle Designer have the ability to connect to a SOAP server and automatically set up JavaScript functions that I can call (that then get relayed to the SOAP server for execution, followed by the return of data to my XFA-based program)?
    Thanks.
    Dave

    Hi Varma_LC and pguerett,
    First, thank you both for your quick responses!  It sounds like I shouldn't have any trouble using XFA forms and SOAP together.
    Let me ask a related question (not about LiveCycle & SOAP, but just about SOAP).  I'm trying to return two values from one SOAP call.  http://www.avoka.com/blog/?p=998&cpage=1#comment-1692 describes how to do this.  Unfortunately, it's not working for me.
    I'm able to retrieve single values from my SOAP server just fine.  When I try to return two values, the Acrobat JavaScript debugger says both values are "UNDEFINED".  The key part of my code is:
       var IntValue =   // define an int
         soapType: "xsd:int",
         soapValue: "1"
       var NValue =
           n1: IntValue  // n1 is the parameter my SOAP server expects
       var GetTheData = service.GetAllData(NValue);  // Go get the data and populate the GetTheData object
       console.println("GetTheData = " + GetTheData.CmdError + GetTheData.CmdResults);
       Param_1V.value = GetTheData.CmdError;     // This is a text box to display the returned value
       Param_2V.value = GetTheData.CmdResults; // This is also a text box to display the returned value
    Both the console.println & the two text boxes (beginning with Param) print out the same results, namely "UNDEFINED".
    I ran my SOAP client and SOAP server on two different computers, and then used WireShark to look at the SOAP protocol.  The SOAP protocol looks fine, and contains CmdError and CmdResults XML opening/closing tags around the actual data I'm trying to read from the SOAP server. Plus there are GetAllDataResponse and GetAllDataResult XML opening/closing tags around the data XML tags.
    I'm using Acrobat 9 and I developed my SOAP server using Windows Communication Foundation (WCF) 3.5.  The same JavaScript program that is unable to retrieve two values returns one value just fine (a different service... call, of course).  In other words, it's being done in one program, not two separate programs.  So, my singular Net.SOAP.connect call seems to be working fine.
    When I do the Net.SOAP.connect, I display the returned services, and GetAllData is listed, so Acrobat JavaScript knows about this particular service.
    BTW, the WCF built-in client works fine in retrieving/displaying the two returned values, correctly detecting and displaying both returned values.  Of course, the WCF client may have different "rules" than Acrobat has in terms of processing SOAP messages.  I've seen differences before between the WCF client and Acrobat.
    Any insights either of you have or anyone else has would be *greatly* appreciated. I've never used try/catch to trap JavaScript errors, if there is some type of error I should logically be looking for, I would be interested in information on that as well.
    Thanks!
    Dave

  • Wanting to write a SOAP server.

    I'm a Java programmer of 8 years experience, worked in J2EE, good knowledge of the usual XML APIs, the HTTP protocol etc, just so we know where we're starting...
    I'd like to write a SOAP server to expose certain routines to a Java client. Obviously I'd be writing the client side which would be in a web app.
    Now, the server side must be in this 3GL, non-OO proprietary language which my employer is wedded to (Synergy DBL). All the data are in that proprietary language's ISAM files. This is a requirement.
    That language has an XML parser, and an HTTP API, so I can read, parse, generate and send XML documents.
    Am I right in thinking that I don't need to write a WSDL description of the web service? That is generally used to generate Java sketeon/stub routines is it not?
    There exists a proprietary form of exposing certain DBL methods, and the interface is described by an XML document, for example as a proof of concept, I am exposing this method:
    <?xml version='1.0'?>
    <component name="fclasp" repository="/usr2/fclenv/51A/DATA/SYS/FCLmain.ism" smc="/usr2/fclenv/51A/DATA/SYS/" >
      <structure name="Asp_wt_filters" size="126" >
        <field name="Buyer_name" type="alpha" size="35" />
        <field name="Buyer_ref" type="alpha" size="15" />
        <field name="Supplier_name" type="alpha" size="35" />
        <field name="Supplier_ref" type="alpha" size="15" />
        <field name="Country_code_1" type="alpha" size="2" />
        <field name="Country_code_2" type="alpha" size="2" />
        <field name="Country_code_3" type="alpha" size="2" />
        <field name="Country_code_4" type="alpha" size="2" />
        <field name="Start_status" type="decimal" size="1" />
        <field name="End_status" type="decimal" size="1" />
        <field name="Start_date" type="user" size="8" />
        <field name="End_date" type="user" size="8" />
      </structure>
      <interface name="asp">
        <method name="asp_wt_list" id="asp_wt_list" elb="ELB:ASPLIB" >
          <methodresult type="integer" size="4" />
          <param name="p_request_mode" type="integer" size="4" />
          <param name="asp_wt_filters" type="structure" structureName="Asp_wt_filters" />
          <param name="p_output_format" type="integer" size="4" />
          <param name="r_tracking_ref" type="alpha" size="7" dir="out" />
          <param name="r_desc_buffer" type="alpha" size="660" dir="out" />
          <param name="r_data_buffer" type="alpha" size="660" dir="out" />
          <param name="r_break_flag" type="integer" size="4" dir="out" />
          <param name="r_break_reason" type="alpha" size="100" dir="out" />
          <param name="r_no_fields" type="integer" size="4" required="no" dir="out" />
          <param name="r_field_positions" type="integer" size="4" dim="1" required="no" dir="out" />
          <param name="r_field_lengths" type="integer" size="4" dim="1" required="no" dir="out" />
        </method>
      </interface>
    </component>You can see it is a very primitive WSDL descriptor - it describes compound data types, and the methods in an interface.
    Could I use the SAAJ API to call that routine from the Java/web tier? The SAAJ API just looks like a simplified XML API, not much to do with SOAP, and SOAP looks like it just sends arbitrary XML documents inside the soap Body.
    How, in SAAJ, do I create a standard SOAP message to represent an invocation of that method?
    I plan to generate a Java proxy to implement the interface, but I need to know how to work SOAP with SAAJ, so then I can examine the generated XML, and parse it appropriately in a generated Synergy DBL skeleton at the server end.
    Another consideration, is that in the current "RPC", a sessoni is established between client and server, and state is preserved between calls. The above method returns data from a query line by line in subsequent calls. Obviously this needs some kind of routing servlet to handle ths incoming SOAP packet and maintain correlation between client, and a specific instance of a DBL Synergy SOAP server to which it redirects requests..
    If anyone can help with suggestions, tips, links, whatever I'd be very grateful. I'm finding this a bit of a steep learning curve - none of the online resources go into SOAP ni any meaningful way, it's all just a skim saying how it's a simple form of RPC. But I need to know how to drive it!

    Would it help if you are shown how a SAAJ client can contact a WSDL Webservice.
    >
    How, in SAAJ, do I create a standard SOAP
    message to represent an invocation of that method?Would it help if you are shown how a SAAJ client can contact a WSDL Webservice. You will have to download JWSDP 1.4 for that. And then i can provide more info on how to write the SAAJ client. Also look at JWSDP 1.4 Tutorial, it will give you a lot of useful information.
    Another consideration, is that in the current "RPC", a
    sessoni is established between client and server, and
    state is preserved between calls. The above method
    returns data from a query line by line in subsequent
    calls. Obviously this needs some kind of routing
    servlet to handle ths incoming SOAP packet and
    maintain correlation between client, and a specific
    instance of a DBL Synergy SOAP server to which it
    redirects requests..Have you read the SOAP version 1.2 Part 0: Primer document. It gives useful insights into how to do such things.
    http://www.w3.org/TR/soap12-part0/
    >
    If anyone can help with suggestions, tips, links,
    whatever I'd be very grateful. I'm finding this a bit
    of a steep learning curve - none of the online
    resources go into SOAP ni any meaningful way, it's all
    just a skim saying how it's a simple form of RPC. But
    I need to know how to drive it!The SOAP 1.2 primer also explains how SOAP is a simple form of RPC (very nicely).

  • Response struct of SOAP in particular case (in 9i AS Soap Server)

    In Oracle9i AS Soap Server,
    If the method is void type, which type of response struct will
    be sent from 9i Soap Server?
    1) Omit the response struct.
    2) Return a response struct with dummy value.

    Thanks for your response, Sandro.
    The webservice which I use has been modified. Now if it throws an exception, I receive well a SOAP message :
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
       <soap-env:Body>
          <soap-env:Fault>
             <faultcode>soap-env:Client</faultcode>
             <faultstring xml:lang="en">ALREADY_EXISTS</faultstring>
             <detail>
                <n0:Z_WS_CREATE_WAGON.Exception xmlns:n0="urn:sap-com:document:sap:rfc:functions">
                   <Name>ALREADY_EXISTS</Name>
                   <Text>Virus scan profile /SIHTTP/HTTP_UPLOAD is not active</Text>
                   <Message>
                      <ID>VSCAN</ID>
                      <Number>033</Number>
                   </Message>
                </n0:Z_WS_CREATE_WAGON.Exception>
             </detail>
          </soap-env:Fault>
       </soap-env:Body>
    </soap-env:Envelope>
    About the exception managing :<br>
    - In my integration process, I include the send step in a block, with property <i>Exceptions</i> =
    ALREADY_EXISTS
    - In the send step, in property <i>Exceptions</i>, I add <i>System Error</i>
    ALREADY_EXISTS
    - I insert an <i>Exception Branch</i> in the new block, <i>Exception Handler</i>
    ALREADY_EXISTS
    Is that correct?
    Do I need to use Fault messages?
    And how do I get the error message ?
    <br>In transaction ST22, I have no dump.
    <br>If it is a problem of exception managing, why do I get also the error (<i>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</i>) when all is right in the web service call ?
    Regards,
    Laurence

  • SOAP:Server, System Error SystemError , code MESSAGE.GENERAL /code

    Hi!!!
    I am testing a webservice and I am getting the following error
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP:Body>
          <SOAP:Fault>
             <faultcode>SOAP:Server</faultcode>
             <faultstring>System Error</faultstring>
             <detail>
                <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                   <context/>
                   <code>MESSAGE.GENERAL</code>
                   <text/>
                </s:SystemError>
             </detail>
          </SOAP:Fault>
       </SOAP:Body>
    </SOAP:Envelope>
    Kindly help me with the same.
    Thanking all of you in anticipation
    Regards,
    Kiran

    Hi Michal,
    Thanks for your prompt response. The above stated error is what I got after accessing it from soapUI.
    I tried to access it from the browser and it gave the following message
    - <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP:Header />
    - <SOAP:Body>
    - <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <faultcode>SOAP:Client</faultcode>
      <faultstring>Empty HTTP request received</faultstring>
      <faultactor>http://sap.com/xi/XI/Message/30</faultactor>
    - <detail>
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="MESSAGE">EMPTY_HTTP_REQUEST_RECEIVED</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Empty HTTP query received; message processing not possible</SAP:Stack>
      </SAP:Error>
      </detail>
      </SOAP:Fault>
      </SOAP:Body>
      </SOAP:Envelope>
    Thanks for your help.
    Regards,
    Kiran

  • Dynamic Invocation: Error The SOAP PA receives a SOAP Fault from SOAP serve

    Hi All,
    I am trying to run the sample code "Dynamic Invocation of Oracle9i Web Services using Oracle UDDI registry"
    I was able to run the web services, publish them, and inquiry them using local UDDI registry.
    However, while invoking any method provided by the web services using the inovk method I get the following error
    oracle.j2ee.ws.client.WebServiceProxyException: Invocation failed 5,100: The SOAP PA receives a SOAP Fault from SOAP server
    Can anybody help me please?
    Regards,
    S.Al Shamsi

    It looks like the problem is occuring on the server side. I guess you have included the stacktrace from the client, can you get hold of the server side stacktrace?

  • Communicate with SOAP server form forms6i

    How can I communicate with an external (.NET) SOAP server in Forms6i?

    We are running forms 6i client-server. I have created client stub class for web service and imported into the form. But the class could not get instatiated at run time. I realized that the soapHTTPconnection package is being imported in the stub class. There is no such package in the oracle forms home. Other packages that the class imports are java.net, org.apache, java.util. So the oracle forms client configuration that I have to use should be different than what I currently have. So, what should I do to implement all these packages or the new client environment ?

  • SOAP Server Side

    Hi guys, I already know a few about SOAP technologies (only in theory) and now I need some pratice.....
    I need to develop a SOAP service wich will expect some callback calls, let me explain better:
    There are to machines A and B
    I need to register my application A (in the machine A) into the B Server
    I need to register a url and a callback function in the server B
    When something occurs the server B call the "callbackfunction" in the server A
    Summarize:
    The client side has a temperature monitor programming and the server B has a connection with the "temperature measure device". so I register my client in the B server and every time the temperature changes I will call a "method" in the client A application
    How can I do this?!?! Some directions will be very welcome
    []'s
    Thanks all
    Giscard

    It is the problem for me too. I used Apache SOAP, and I think it is the only way to realize this. At least, nobody posted an answer here, when I asked the same question. It is very sad, but I'm afraid J2EE has not mechanism to provide server-side support of SOAP. This aspect gently omissed in all Java tutorials.
    It's very nice :)

  • Soap:Server was unable to process request. --- Value does not fall within the expected range

    Brand spanking new Sharepoint 2010 RTM and Designer 2010 RTM install. Unable to edit any page whatsoever even when checking out. Error in SP Designer: soap:Server was unable to process request. ---> Value does not fall within the expected range.
    Like I said, this is a brand new RTM install with nothing altered yet. Why can't I edit any pages? I am using the highest credentials so there should be no permission issues. There isn't anything that is helping me on the Web for this.
    Why would I encounter a problem like this out of the box? This is not the beta - it is RTM!

    Go to :
    Site Collection Administration 
    SharePoint Designer Settings
    and Enable the following
    Enable Detaching Pages from the Site Definition
    Enable Customizing Master Pages and Page Layouts
    Enable Managing of the Web Site URL Structure
    This should resolve the SP Designer Edit Issues.

  • Soap server connection problem

    in jdeveloper 9.0.2 i am trying to develop and deploy webservice. After starting embeded oc4j engine from the command prompt i m unable to get this url http://<hostname>:8888 from the browser .
    Also facing the problem while running the new soap server connection wizard. while testing the connection i m getting this error.
    Testing connection...
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
    <HTML><HEAD>
    <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
    </HEAD><BODY>
    <H2>The requested URL could not be retrieved</H2>
    <HR>
    <P>
    While trying to retrieve the URL:
    <A HREF="http://<hostname>:8888/soap/servlet/soaprouter">http://kanti:8888/soap/servlet/soaprouter</A>
    <P>
    The following error was encountered:
    <BLOCKQUOTE>
    Unable to determine IP address from host name for
    <I>kanti</I>
    </BLOCKQUOTE>
    <P>
    The dnsserver returned:
    <BLOCKQUOTE>
    Name Error: The domain name does not exist.
    </BLOCKQUOTE>
    <P>
    This means that:
    <PRE>
    The cache was not able to resolve the hostname presented in the URL.
    Check if the address is correct.
    </PRE>
    <P>Your cache administrator is <A HREF="mailto:root">root</A>.
    <br clear="all">
    <hr noshade size=1>
    Generated Fri, 14 Feb 2003 13:05:51 GMT by firewall (Squid/2.4.STABLE6)
    </BODY></HTML>
         java.lang.String org.apache.soap.rpc.Call.getEnvelopeString(org.apache.soap.transport.SOAPTransport)
         org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)
         org.apache.soap.rpc.Response oracle.jdevimpl.webservices.util.JDevServiceManager.invokeMethod(java.lang.String, org.apache.soap.rpc.Parameter)
         java.lang.String[] oracle.jdevimpl.webservices.util.JDevServiceManager.list()
         void oracle.jdevimpl.webservices.wizard.connection.TestConnectionPanel$2.run()
    Unable to connect to SOAPServerConnection1 (http://<hostname>:8888/soap/servlet/soaprouter)
    Connection test failed: unable to connect
    right now i m ready to use any web service either
    1 > j2ee web service .(or)
    2 > soap web service
    but both are not working .
    Pls help me on this issue.
    regards mangesh

    If you use HttpsURLConnection for this, it will work on java 1.4.1, but not on prior releases. It will (as far as I can tell from experiment) use the time that the server provides for Keep-Alive.

  • Using ABAP Web Service tor convert IDoc to XML and transfer to SOAP Server

    Hi all,
    I have a problem to use ABAP Web Service to convert IDoc's to XML and then send them to a SOAP Server.
    Currently we have the following landscape:
    SAP->XI->Archive
    The sap-system (ECC6.0) sends an IDoc to the Exchange Infrastructe. The XI maps the IDoc and converts it to the required XML format, used by the archive. Afterwards, the XML documents are sended to the SOAP Server.
    So I'm trying to replace the Exchange Infrastructure with ABAP Web Service.
    I've read a lot of posts and documents reagarding ABAP Web Serivce, converting IDoc's to XML, RFC and so on, but I'm not able to do the replacement.
    I don't know how to start and which steps are required.
    The required roles and authorizations at the sap-system and the service for soamanager and the Web Service Viewer are available.
    First I thought to create the RFC and partner profiles and then the report to convert IDoc to XML as a BAPI. With this BAPI I supposed to create and define a Web Service. The problem is, I don't know how to trigger the report if the Idoc should be send to the archive.
    Hopefully, someone has an idea or a how-to for me.
    Thanks in advance.
    Regards,
    Christoph
    Edited by: BigTicket on May 12, 2010 9:36 AM

    Hi BigTicket.
    A suggestion to trigger the BAPI / WebService at the IDoc receiving is to use a user exit or enhanced inside the idoc function module. When the idoc arrived to the idoc port the system start the related function module and then your user exit/enhanced in which you invoke your BAPI.
    I hope this help.
    Ciao.
    Nicola

  • Response SOAP Server Error

    Hi ,
    While invoking the PLSQL web service example from browser I am geting the following error
    <?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>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.lang.NullPointerException</faultstring>
    <faultactor>/plsqlsample/dbfunc</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Please help ..

    Thanks Eric for reply...
    I was just following the steps provided at http://www.oracle.com/technology/pub/articles/price_10gws.html
    for web service examples for windows environment.. I am using the standalone oc4j container and jsdk 1.4 verison for my testing.. I am able to invoke the placeOrder plsql service but am getting error while invoking the request.
    I am not sure from where the NPE is getting transmitted ... Can I run my OC4J in interactive mode to trace the error.. Also how OC4J is linked to SOAP server intrenaly any idea?? Since the example wsdl I am using is having <soap:address location="http://localhost:7777/plsqlsample/dbfunc"> does this means that soap server is running at 7777 port and plsqlsample.dbfunc is binded to soap server?
    I am bit confused ..Please help ..

Maybe you are looking for

  • Regarding the file name checking

    Hi ,      I m using the below program which will upload the XL sheet , here i want to validate the file name which i m selecting from the destop. the file name should be named as "Suresh.XLS", where and how i can do validation for checking the file n

  • Problem converting file

    I tried to convert a PDF file to word doc and received the following message: File failed to be converted using Adobe ExportPDF online. I also tried to convert the file using the online application and again received a failure message.  Can anyone po

  • Rendering-Sometimes I get a window sometimes not?

    Ok, I am having an issue with Rendering command.  I need it to play the video back smoothly, but sometimes when I hit the Render button on the workspace the video just starts playing from the beginning by itself, but the playback is not smooth...it i

  • Safari gets stuck often, won't load pages and ...

    I have discovered when I look at the force quit menu that the following is "not responding." What would cause this and how can I fix it? BTW, my Flash is up to date.

  • Mac Wifi Won't Connect

    My wifi on my mac doesn't work. The wifi symbol does not appear on the toolbar on top. Also, when I go to system preferences>network, wifi is not even an option in the column on the left. I have tried restarting my computer several times. That used t