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!)

Similar Messages

  • How to capture the message recived to the soap server from client -onMessag

    Hi,
    I want to send JAXM message from client to server
    and In server print the message to a text file.
    My client
    SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
    SOAPConnection con = scf.createConnection();
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage msg = mf.createMessage();
    SOAPPart part = msg.getSOAPPart();
    SOAPEnvelope envelope = part.getEnvelope();
    SOAPBody body = envelope.getBody();
    javax.xml.soap.Name name = envelope.createName("Text");
    javax.xml.soap.SOAPBodyElement bodyElement = body.addBodyElement (name);
    bodyElement.addTextNode ("Some Body text");
    This is the way i'm accessing now in theserver
    public SOAPMessage onMessage(SOAPMessage msg) {
    try {
    FileOutputStream out; // declare a file output object
    PrintStream p;
    out = new FileOutputStream("E:/Accepter.txt");
    p = new PrintStream(out);
    int count = msg.countAttachments();
    p.println("write");
    msg.writeTo(out);
    This creates the text file and write unwanted characters
    1)How do i access the message content and store in a text file or
    String variable??
    2)How do i access the message content in name wise in he case of many messages recived to the server
    Thanks for your time .
    suda

    * To save a message to a file.
    File file = new File("file.xml");
    msg.writeTo(new FileOutputStream(file));
    * To recreate a message (without attachments) from a file.
    MessageFactory mfactory = MessageFactory.newInstance();
    SOAPMessage msg = mfactory.createMessage();
    SOAPPart part = msg.getSOAPPart();
    StreamSource streamSource =
    new StreamSource(
    new FileInputStream("file.xml"));
    part.setContent(streamSource);
    // to view the recreated message
    msg.writeTo(System.out);
    * You should also be able to use DOMSource to recreate the message as:
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document domDoc =
    builder.parse(
    new File("file.xml"));
    Source domSource = new
    javax.xml.transform.dom.DOMSource(domDoc);
    MessageFactory mfactory = MessageFactory.newInstance();
    SOAPMessage msg = mfactory.createMessage();
    SOAPPart part = msg.getSOAPPart();
    part.setContent(domSource);
    Hope this helps.

  • 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.

  • 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).

  • How MS SOAP 3.0 client invokes WL 7.0 Webservice WITHOUT using a WSDL file?

    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

    Hi,
    As you might guess, we are not big VB users here :-) but we may have some C# code that
    could be of some value.
    What problem are you trying to solve by not using WSDL?
    Just curious,
    Bruce
    Dovan Nguyen wrote:
    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

  • 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?

  • C/C++ using SOAP as JMS Client ?

    Did any body tried C/C++ using SOAP as JMS Client?

    You can register any compliant JMS provider as a foreign jms provider in weblogic and then can access the JMS administered objects (destination and connection factory) from the local weblogic JNDI tree.
    This blog shows how to configure AQJMS as a foreign JMS provider and then configure JMS adapter to access the jms objects.
    http://biemond.blogspot.com/2009/07/using-aq-jms-text-message-in-wls-1031.html
    You can use the above link as a reference on how to setup. You will have to modify the Initial Context Factory, Provider URL, JNDI Properties, foregin connection factories and foreign detsinations section to suit activeMQ.
    Note: Weblogic does not come inbuild with the required jars to connect to ActiveMQ unlike AQJMS, so you need to ensure that the active mq jms client jars are available in the weblogic's classpath.

  • 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 ?

  • [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)

    Dear Experts,
    i am getting the below error when i was giving * (Star) to view all the items in DB
    [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)
    As i was searching individually it is working fine
    can any one help me how to find this..
    Regards,
    Meghanath.S

    Dear Nithi Anandham,
    i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
    Regards,
    Meghanath

  • Drive Redirection virtual channel hangs when copying a file from server to client over RDP 8.1

    Problem Summary:
    A UTF-8 without BOM Web RoE XML file output from a line of business application will not drag and drop copy nor copy/paste from a Server 2012 R2 RD Session Host running RD Gateway to a Windows 7 Remote Desktop client over an RDP 8.1 connection and the Drive
    Redirection virtual channel hangs.  The same issue affects a test client/server with only Remote Desktop enabled on the server.
    Other files copy with no issue.  See below for more info.
    Environment:
    Server 2012 R2 Standard v6.3.9600 Build 9600
    the production server runs RDS Session Host and RD Gateway roles (on the same server).  BUT,
    the issue can be reproduced on a test machine running this OS with simply Remote Desktop enabled for Remote Administration
    Windows 7 Pro w SP1v6.1.7601 SP1 Build 7601 running updates to support RDP 8.1
    More Information:
    -the file is a UTF-8 w/o BOM (Byte Order Marker) file containing XML data and has a .BLK extension.  It is a Web Record of Employment (RoE) data file exported from the Maestro accounting application.
    -the XML file that does not copy does successfully validate against CRA's validation XML Schema for Web RoE files
    -Video redirection is NOT AFFECTED and continues to work
    -the Drive Redirection virtual channel can be re-established by disconnecting/reconnecting
    -when the copy fails, a file is created on the client and is a similar size to the original.  However, the contents are incomplete.  The file appears blank but CTRL-A shows whitespace
    -we can copy the contents into a file created with Notepad and then that file, which used to copy, will then NOT copy
    -the issue affects another Server 2012 R2 test installation, not just the production server
    -it also affects other client Win7 Pro systems against affected server
    -the issue is uni-directional i.e. copy fails server to client but succeeds client to server
    -I don't notice any event log entries at the time I attempt to copy the file.
    What DOES WORK
    -downgrading to RDP 7.1 on the client WORKS
    -modifying the file > 2 characters -- either changing existing characters or adding characters (CRLFs) WORKS
    -compressing the file WORKS e.g. to a ZIP file
    -copying OTHER files of smaller, same, and larger sizes WORKS
    What DOES NOT WORK?
    -changing the name and/or extension does not work
    -copying and pasting affected content into a text file that used to have different content and did copy before, then does not work
    -Disabling SMB3 and SMB2 does not work
    -modifying TCP auto-tuning does not work
    -disabling WinFW on both client and server does not work
    As noted above, if I modify the affected file to sanitize it's contents, it will work, so it's not much help.  I'm going to try to get a sample file exported that I can upload since I can't give you the original.
    Your help is greatly appreciated!
    Thanks.
    Kevin

    Hi Dharmesh,
    Thanks for your reply!
    The issue does seem to affect multiple users.  I'm not fully clear on whether it's multiple users and the same employee's file, but I suspect so.
    The issue happens with a specific XML file and I've since determined that it seems to affect the exported RoE XML file for one employee (record?) in the software.  Other employees appear to work.
    The biggest issue is that there's limited support from the vendor in this scenario.  Their app is supported on 2012 R2 RDS.
    What I can't quite wrap my head around are
    why does it work in RDP 7.1 but not 8.1?  What differences between the two for drive redirection would have it work in 7.1 and not 8.1?
    when I examine the affected file, it really doesn't appear any different than one that works.  I used Notepad++ and it shows the encoding as the same and there doesn't appear to be any invalid characters in the affected file.  I wondered
    if there was some string of characters that was being misinterpreted by RDP or some other operation and blocked somehow but besides having disabled AV and firewall software on both ends, I'm not sure what else I could change to test that further
    Since it seems to affect only the one employee's XML file AND since modifying that file to change details in order to post it online would then make that file able to be copied, it seems I won't be able to post a sample.  Too bad.
    Kevin

  • Try to use one comupter as both server and client

    Hello, everyone, I am just trying to use my own computer as both server and client to test some codes about networking. For example, use the sample code in java tutorial which is used to test Echo server(code is listed below). Is there anything I have to do to set my computer, such as set my hostname or something like that?
    I am a pure newbie. And the purpose of this question is to test some code including socket on one PC without connect to internet.
    I have tried to change the name "taranis" in the following code to the computer name of my own PC, but it doesn't work, and said: Couldn't get I/O for the connection to: (my computer name).
    import java.io.*;
    import java.net.*;
    public class EchoClient {
    public static void main(String[] args) throws IOException {
    Socket echoSocket = null;
    PrintWriter out = null;
    BufferedReader in = null;
    try {
    echoSocket = new Socket("taranis", 7);
    out = new PrintWriter(echoSocket.getOutputStream(), true);
    in = new BufferedReader(new InputStreamReader(
    echoSocket.getInputStream()));
    } catch (UnknownHostException e) {
    System.err.println("Don't know about host: taranis.");
    System.exit(1);
    } catch (IOException e) {
    System.err.println("Couldn't get I/O for "
    + "the connection to: taranis.");
    System.exit(1);
         BufferedReader stdIn = new BufferedReader(
    new InputStreamReader(System.in));
         String userInput;
         while ((userInput = stdIn.readLine()) != null) {
         out.println(userInput);
         System.out.println("echo: " + in.readLine());
         out.close();
         in.close();
         stdIn.close();
         echoSocket.close();

    Did you write the EchoServer and start it on your
    machine, listening on port 7?
    You can have the client and server running on the same
    machine or different machines, but they have to be
    separate pieces of software.
    Write a separate EchoServer class that starts up and
    listens on that port. Then start the EchoClient and
    make the connection.
    %yeah, I didn't wrote the EchoServer class. But I thought it is automaticly included and therefore has run once I start my computer.
    If I write a EchoServer class, then how should I set the host name of the EchoClient, just simply change "taranis" to my computer name (change "echoSocket = new Socket("taranis", 7);" to echoSocket = new Socket("(my comptuer name)", 7);"?

Maybe you are looking for

  • ISight camera is no longer recognized

    iChat only allows me to audio chat and photobooth says there is no camera. Whats should i do?

  • Getting %Error in authentication when using enable password via ACS 5.5

    Hey, I've been on a LAN that's been using ACS 4.1 and its been working fine.  Ive recently installed ACS 5.5 on a VM and Im attempting to get it to work.  I've changed the Tacacs IP to the new server and the secret key on this particular switch and I

  • RSSM: Checks Authorization Objects for Infoprovider are not activ

    Hello, we have BW 3.5 and we use RSSM Authorization Objects. When we create a new cube with an Infoobject that is authorization relevant, in our development-system in rssm the flags for the checks are automatically activ. When we transport the new cu

  • Ps CS6 (non CC): Field Blur: no pins

    Hello I just noticed recently that I have no pins/markers in any blur dialog (iris, field, whatever). I cannot remember whether I ever had any. I didn't use these new blur things until recently. Comparing my GUI with a tutorial video showed me that t

  • Private Bag vs P O Box - Company Code details

    Good day all We use Private Bag instead of the PO Box. Where on the company code data can I make a change not to print PO Box in the address line but to print Private Bag. I am from South-Africa and we are country code. 012. Because the Postal addres