Flex soap client (interospection wizard) preloader help

hey guys, i have a small problem, im brand new to flex so i haveno idea what im doin... im using the flash builder (gumbo)
and basically what im doin is getting soap data from my server using the webservice interospection wizard.
what i cannot figure out is how to popup a loader bar, indefinite or definite dosent matter...
the current code i have is:
package modules.SiteEditor{
    import mainScript.mainList;
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import services.sites.*;
    [Bindable] public class siteEditor{
        // variables
        public static var siteTitle:String;
        public static var siteListData:Site;
        public static var siteService:Sites = new Sites();
        public static var isUpdated:Boolean = false;
        public static function init():void{
            siteService.addEventListener(ResultEvent.RESULT, resulting);
            siteService.addEventListener(FaultEvent.FAULT, fault);
            siteService.GetSite(mainScript.mainList.siteId);
            //Alert.show("here");
        public static function resulting(event:ResultEvent):void{
            siteListData = event.result as Site;
            siteTitle = siteListData.siteTitle;
            isUpdated = false;
            //Alert.show(siteListData.siteTitle);
            //Alert.show("done");
        public static function fault(event:FaultEvent):void{
            Alert.show(event.fault.faultCode);
            Alert.show(event.fault.faultString);
i have a vague idea about how to do this, but it dosent work...
what i tried to do is add another event listeler in the init function but i cannot see loadingEvent in the drop down list that pops up... if that makes any sence...
All i want to happen when the init function is called is a loader bar to popup.
thanks a lot in advance

anyone with any ideas???

Similar Messages

  • Any one could help me with this soap client program?

    Any one could help me with this soap client program?
    Below is the request format my partner is expecting to see:
    POST /Service.asmx HTTP/1.1
    Host: 192.168.1.1
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "https://api.abcdefg.com/GetList"
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         <soap:Body>
              <GetList xmlns="https://api.abcdefg.com/">
                   <username>string</username>
                   <password>string</password>
              </GetList>
         </soap:Body>
    </soap:Envelope>The java client I wrote is blow:
    import javax.xml.soap.*;
    import java.util.Iterator;
    import java.net.URL;
    import java.io.*;
    public class Client {
        public static void main(String [] args) {
            try {
                SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
                SOAPConnection connection = soapConnectionFactory.createConnection();
                SOAPFactory soapFactory = SOAPFactory.newInstance();
                MessageFactory factory = MessageFactory.newInstance();
                SOAPMessage message = factory.createMessage();
             // addd SOAPAction;
             MimeHeaders hd = message.getMimeHeaders();
             hd.addHeader("SOAPAction", "https://api.abcdefg.com/GetList");
                // get env and body;
                SOAPPart soapPart = message.getSOAPPart();
                SOAPEnvelope envelope = soapPart.getEnvelope();
             SOAPBody body = envelope.getBody();
                Name bodyName = soapFactory.createName("GetList", "", "https://api.abcdefg.com/");
                SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
                //Constructing the body for the request;
             SOAPElement username = bodyElement.addChildElement("username");
             username.addTextNode("1234567");
             SOAPElement password = bodyElement.addChildElement("password");
             password.addTextNode("7654321");
                System.out.print("\nPrinting the message that is being sent: \n\n");
                message.writeTo(System.out);
                System.out.println("\n\n");
                URL endpoint = new URL ("https://api.abcdefg.com/Service.asmx");
                SOAPMessage response = connection.call(message, endpoint);
                connection.close();
                response.writeTo(System.out);
            }catch (Exception e) {
                 System.err.println("ERROR: ******* " + e.toString());
    }The response my partner's server returned is:
    <faultstring>Server did not recognize the value of HTTP Header SOAPAction:. </faultstring>I used similar code to access the web services provides via tomcat, it works fine...however, for this .NET services it does not work.
    By the way, I also have another version of the clirnt, using JDOM to construct a XML request and wrap with axis message. I got the same error message as above.
    Can anyone point out something for me?
    Any kind of comments will be appreciated!!
    Edited by: Nickolas.Chen on May 6, 2008 7:20 PM

    You will need to Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Https call from SAP SOAP client tool

    Hi,
    in order to call a webservice via https using the SAP SOAP client tool, I've done the following:
    1. The Client cert field filled with my personal certificate from IE (pcert.pfx)
    2. The Trust store field left as it was (cacerts file of the jre).
    When calling the service I am getting
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
    Very likely this is caused by setting 2.
    Could anybody advise how to get an X.509 certificate of trusted root CAs? Any chance to export from IE or would one have to get that from a CA? File types required are ppfx or p12, which is strange since these contain private keys.
    Much appreciated.
    Rene Funke

    Hi Rene,
    You need to include the full certificate chain in the p12 file. i.e. private cert and root CA cert.  IE will not export the full certificate path with the private certificate unless it was imported into IE with this flag set. You could use Firefox to generate the pks12 file. It will include the full certificate path.
    This private certificate (p12 file) should then be added to the truststore in XI.
    Also, .p12 (pkcs#12) file format defines a file format commonly used to store private keys with accompanying public key certificates - not just private keys.
    Hope this helps.
    Bryan

  • Handling of SOAP Faults in SOAP Clients consuming PI Web services

    Hi there,
    the following is in regards to SOAP fault error handling in a SOAP client that consumes a Web Service published by PI.
    I have been reading a number of threads and blogs in regards to this topic and I am still left with some open questions which I hope to get some final answersclarifications through this thread.
    In particular the blogs
    Handling Web Service SOAP Fault Responses in SAP NetWeaver XI      - Handling Web Service SOAP Fault Responses in SAP NetWeaver XI
    XI: Propagation of meaningful error information to SOAP Client     - XI: Propagation of meaningful error information to SOAP Client
    have caused by attention.
    Both of these threads are realating to the Fault Message type one can use to return errors back to a SOAP Client (.Net, Java, etc.).
    In our scenario we published a number of Web Services through PI that provide functionality to integrate with an R3 back-end system using inbound ABAP Proxies.
    The services are standardised and will be consumed by a number of .NetJava applications and systems. The reason for the use of ABAP proxies is the customer specific application logic that is executed in the backend system. The Web services are synchronous and don't use ccBPM in the middle. Transformations are performed in PI combined with various lookups to set default values before the message is passed into the ABAP Framework of the R3 back-end system. The lookups are done against the R3 back-end system using the PI RFC Lookup feature.
    The inbound proxies currently return application errors as part of the response message back to the SOAP client. For more critical errors we introduced the use of Fault message types as the method to return the information back to the SOAP Client. This is all working satisfactory.
    The questions I have are as follows.
    1. When an error occurs at the IE level (e.g. mapping error), ABAP Proxy framework level (e.g. conversion from XML to ABAP format) or Adapter Framework level (Adapter releated error) a different SOAP fault message structure is returned to the SOAP Client than the one    used for the application errors. The SOAP fault message structure used in this case is the standard SOAP fault used by PI to return system errors back to the caller. For those SOAP fault messages there is no payload generated that could be mapped to the SOAP fault structure used for the application errors. This would be preferrable as there would be only one Fault message structure used for both inbound ABAP proxy generated fault messages and PI generated fault messages.
    Also the error messages generated by PI can be quite cryptic and difficult to interpret at the client end and could be filtered     ranslated during message mapping if the payload of the PI generated SOAP fault message could be accessed in a message mapping.
    Point 3 of the above thread 2759 indicates that this would be possible but doesn't outline how. Could somebody please clarify this for me as I don't believe that this is really possible ???.
    My idea instead was to use the PI SOAP fault message structure to also return application errors. Therefore I would create a Fault message type that matches the PI SOAP fault structure. This would enable the SOAP Client to handle only one SOAP Fault error structure. Would that be something to look into instead ?????.
    2. We have been looking at using the integrated WEB AS SOAP adapter instead of using the AF Sender SOAP adapter. While playing with this we encountered differences in the content returned through the SOAP fault generated by PI. A sample is below. Shouldn't the content of these SOAP faults be the same if the error that caused it is the same. Also the SOAP fault returned by the IE SOAP adapter is much more    useful in this particular case. Both errors below are the same, a conversion error from XML to ABAP took place in the inbound ABAP proxy framework of the back-end system.
    SOAP fault returned when using SOAP Sender adapter of AF
    <!see the documentation>
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP:Body>
          <SOAP:Fault>
             <faultcode>SOAP:Server</faultcode>
             <faultstring>Server Error</faultstring>
             <detail>
                <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                   <context>XIAdapter</context>
                   <code>ADAPTER.JAVA_EXCEPTION</code>
                   <text>com.sap.aii.af.ra.ms.api.DeliveryException: XIProxy:PARSE_APPLICATION_DATA:
         at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:455)
         at com.sap.aii.af.ra.ms.impl.core.queue.consumer.CallConsumer.onMessage(CallConsumer.java:134)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:916)
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)</text>
                </s:SystemError>
             </detail>
          </SOAP:Fault>
       </SOAP:Body>
    </SOAP:Envelope>
    SOAP fault using integrated SOAP adapter of PI IE
    <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>ABAP.PARSE_APPLICATION_DATA</code>
                   <text>Error during XML => ABAP conversion (Request Message; error ID: CX_ST_DESERIALIZATION_ERROR; (/1SAI/TXSBE20FF604BAFEF8D990A XML Bytepos.: 564  XML Path: ns1:CreatePORequest(1)POHEADER(2)COMP_CODE(1) Error Text: Data loss occurred when converting ############################## Kernel ErrorId: CONVT_DATA_LOSS))</text>
                </s:SystemError>
             </detail>
          </SOAP:Fault>
       </SOAP:Body>
    </SOAP:Envelope>
    I have been reading threads for hours without being able to find one that answers questions 1 or provides a blog that outlines the approach one should take for error handling in SOAP clients that consume PI Web Services (and covers both PISystem generated faults and faults raised in Proxies).
    There may already be a blog or thread and I just missed it.
    Any comments are welcome.
    Thanks. Dieter

    Hi Dieter,
    As Bhavesh already mentioned fault messages are used for application errors. The same is described in SAP XI help:
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/b7623c6369f454e10000000a114084/frameset.htm
    In case of system error (e.g. field length too long in proxy call or error in XI/PI mapping) there seems to be no standard way of handling it and propagating the response to the consumer of webservice.
    Each system error is not recognized by SOAP adapter and SOAP adapter exception is raised.
    The only bizzare solution that I can see is developing an adapter module and transport wrong message to standard fault message before delivering it to adapter engine:
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/f13341771b4c0de10000000a1550b0/frameset.htm
    Kind regards,
    Wojciech
    btw nice thread

  • Using CopyIntoItems from Copy.asmx from a remote soap client

    Hello,
    I have been working on a soap client that runs on a remote client (not on the SharePoint server) and is platform-independent so that it cannot use the SP Object Model. I have managed to get most of the functionality working using SharePoint web-services except for CopyIntoItems.
    My target server is a SharePoint 2007 server and I have a Document Library set up so I can upload files into it.
    My soap request looks as follows.
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body>
    <CopyIntoItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <SourceUrl>http://null</SourceUrl>
    <DestinationUrls>
    <string>http://shpt.ad2010.local:35492/sites/targetsubsite/Test List/hello.txt</string>
    </DestinationUrls>
    <Fields>
    <FieldInformation Type="Text" DisplayName="Test Column2" InternalName="Test_x0020_Column20" Id="{8c35c0ca-d578-47fd-b7f3-aed199141c86}" Value="Value 0" />
    <FieldInformation Type="Text" DisplayName="Test Column3" InternalName="Test_x0020_Column30" Id="{6c0d3fe3-4f0d-4cff-997b-201747f83315}" Value="Value 1" />
    </Fields>
    <Stream>WW91IHNheSBoZWxsbywgSSBzYXkgZ29vZGJ5ZQ==
    </Stream>
    </CopyIntoItems>
    </soap:Body>
    </soap:Envelope>
    The URL I am invoking this on is: http://shpt.ad2010.local:35492/sites/targetsubsite/_vti_bin/Copy.asmx
    The response I get back is as follows:
    <?xml version="1.0" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soap:Body>
    <CopyIntoItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <CopyIntoItemsResult>
    0
    </CopyIntoItemsResult>
    <Results>
    <CopyResult DestinationUrl="http://shpt.ad2010.local:35492/sites/targetsubsite/Test List/hello.txt" ErrorCode="DestinationInvalid" ErrorMessage="The Copy web service method must be called on the same domain that contains the destination url."/>
    </Results>
    </CopyIntoItemsResponse>
    </soap:Body>
    </soap:Envelope>
    I am unable to find any help on the error mentioned here. I have tried setting the source URL to something valid (I have to make it up because there really is no source URL as I copy from the remote client).
    I wonder if I can even use the CopyIntoItems request (or the Copy web-service as a whole) from a remote soap client, and whether it was only meant to be used for copies between SharePoint Sites. Any clues are much appreciated.

    I am trying to use the copy.asmx service to upload a file from a custom sharepoint form into a document library, and I can only use javascript with jquery. (no visual studio)
    I have a similar soap envelope.
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body>
    <CopyIntoItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <SourceUrl>C://dir/file.txt</SourceUrl>
    <DestinationUrls>
    <string>http://[server]/sites/subsite/Demo List/sample.txt</string>
    </DestinationUrls>
    <Fields>
    <FieldInformation Type="Text" DisplayName="Title" InternalName="Title" Id="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Value="Test Value" />
    </Fields>
    <Stream>base64Binary</Stream>
    </CopyIntoItems>
    </soap:Body>
    </soap:Envelope>
    I'm getting a 500 "internal server error" back.
    Can anyone see what I'm doing wrong ?
    Kris Blair

  • Reg: soap client

    while i am trying to test my webservice in soap client it throws
    error
    Failed to parse soap message
    Original(raw) message:
    com.sap.uddi.generic.impl.soap.NativeSOAPException : Failed to open socket
    Cause : class java.net.ConnectException : Connection refused: connect
    can anyone help me out

    HI Ajay,
    Same kind of problem is discussed here... Please check..
    SOAP Request
    Target URL for SOAP client
    Re: Error in Webservice call
    Cheers..
    Vasu
    <i>** REward Points if found useful **</i>

  • ABAP SOAP Client with MTOM

    Hi experts,
    I need to create a SOAP client in ABAP for a web service that uses MTOM (xop:include) to transfer binary files.
    I know how to create a client proxy in SE80 from WSDL, but I.have no idea how to send attachments with protocol MTOM.
    Does anybody know how to do this in ABAP?
    Thanks a lot!
    LUIS B.

    Hi there.
    Well, I couldn't get the ABAP Proxy working so I build the SOAP client from scratch using class CL_HTTP_CLIENT. It was harder because I had to take care of every aspect in the HTTP communication but in the end it was more flexible.
    I hope this helps.

  • I want to test sender ABAP proxy in AAE by SOAP client

    To PI Specialists
    Now I plan to test sender ABAP proxy in AAE by SOAP client system.
    (we use aae so we set sender abap proxy by sender soap adapter.)
    ABAP creating team and PI creating team are in other site.We cant contact easily.
    I want to separate ABAP Unit test and PI Unit test, plan to use soap client for test driver.
    (we use SOAPUI. )
    the url is http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=party:service:channel
    I noticed that sender soap adapter is started, but the messeage protocol is invalid.
    we use messege of wsdl. it must be XI3.0 protocol.
    Please tell me XI3.0 protocol.
    Naoki

    This is possible to do in SOAPUI.  I am testing this scenario using AAE, but I am also using SOAP UI Pro.  The procedure is pretty basic.  Instead of sending your payload in as part of the body, you have to send it in as an attachment.  You will also need to set the header correctly.  Here is a sample message from my SOAP UI tests that may help. The only thing you need to do differently is load the attachment, name it, and make sure that the name of the attachment is reflected in the SAP:Payload attribute.  Also, I am using a Groovy script to create a GUID.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30">
    <soapenv:Header>
      <SAP:Main versionMajor="003" versionMinor="000" SOAP:mustUnderstand="1" wsu:Id="wsuid-main-92FFF13F5C59777FE1ABE00000A1551F7" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
                xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
       <SAP:MessageClass>ApplicationMessage</SAP:MessageClass>
       <SAP:ProcessingMode>asynchronous</SAP:ProcessingMode>
       <SAP:MessageId>${Create GUID#result}</SAP:MessageId>
       <SAP:TimeSent>${=new java.text.SimpleDateFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'").format(new Date())}</SAP:TimeSent>
       <SAP:Sender>
        <SAP:Service>SVCNM</SAP:Service>
       </SAP:Sender>
       <SAP:Interface namespace="Interface_Namehttp://namespace.com">Interface_Name</SAP:Interface>
      </SAP:Main>
      <SAP:ReliableMessaging SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SAP:QualityOfService>ExactlyOnce</SAP:QualityOfService>
      </SAP:ReliableMessaging>
      <SAP:System SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SAP:Record namespace="http://www.sap.com/webas/712/soap/features/runtime/metering/" name="CallingType">SA</SAP:Record>
      </SAP:System>
      <SAP:Diagnostic SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SAP:TraceLevel>Information</SAP:TraceLevel>
       <SAP:Logging>Off</SAP:Logging>
      </SAP:Diagnostic>
      <SAP:HopList SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SAP:Hop timeStamp="${=new java.text.SimpleDateFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'").format(new Date())}" wasRead="false">
        <SAP:Engine type="BS">SVCNM</SAP:Engine>
        <SAP:Adapter namespace="XIhttp://sap.com/xi/XI/System">XI</SAP:Adapter>
        <SAP:MessageId>${Create GUID#result}</SAP:MessageId>
        <SAP:Info>3.0</SAP:Info>
       </SAP:Hop>
      </SAP:HopList>
    </soapenv:Header>
    <soapenv:Body>
      <SAP:Manifest wsu:Id="wsuid-main-92FFF13F5C59777FE1ABE00000A1551F7" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink"
                    xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
       <SAP:Payload xlink:href="cid:TestPayload.xml">
        <SAP:Name>MainDocument</SAP:Name>
        <SAP:Description/>
        <SAP:Type>Application</SAP:Type>
       </SAP:Payload>
      </SAP:Manifest>
    </soapenv:Body>
    </soapenv:Envelope>
    Here is a picture of my SOAP UI project in case it help the understanding.

  • Wanted SOAP client and server examples

    I am unable to run the SOAP client and server programs.
    Can anybody help me by providing some simple soap examples of both
    client and server and also how to deploy them.

    JAX-WS has a number of samples as does NetBeans. Check out http:/jax-ws.dev.java.net and http://www.netbeans.org/kb/55/websvc-jax-ws.html

  • WHICH SOAP CLIENT STACK FOR  JDEV 10.1.3 WEBPROXY ?

    Hello everybody,
    I just succeeded in calling webservice stubs, created in Jdeveloper 10.1.2., from a oracle10G (R2) DB. This works perfectly...
    Now i'm trying to deploy the same webservice from Jdeveloper 10.1.3 into the same database. I generated a proxy (whereas in Jdeveloper 10.1.2 you create a stub) and deployed a static method from the client class, in the proxy, into the DB (similar to the approach in Jdeveloper 10.1.2). However this doesn't work. I get a big list of error messages containing all reference errors. My guess is that the soap client stack, loaded into Oracle, is different for both versions of Jdeveloper. In that case i'm still working with the stack for jdev 10.1.2 where I should be working with the stack form jdev10.1.3.
    Can anyone please tell me what .JAR's I have to load in the DB to get the proper stack needed for calling 10.1.3 proxys (or stub as you will)?
    Many thx in advance!!!!
    Grtz,
    Kim

    I found out that Jdeveloper 10.1.3 works with JAX-RPC webservices. So instead of installing the SOAP client stack one should install the JAX-RPC stack in the database. this stack is found on the oracle site ( search for call-out utilities).
    Hope this helps people with the same problem!
    Message was edited by:
    Kim Zeevaarders

  • HTTP SOAP Client

    Hi guys,
    I'm very new to web service technology & need your help writing a simple soap client to call a web service.
    the soap request should be : POST /lightboxedit/LBEDataService.asmx HTTP/1.1
    Host: abourne.dyndns.org
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: length
    <?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
      <soap12:Body>
        <GetProjects xmlns="http://www.lightboxedit.com/webservices/" />
      </soap12:Body>
    </soap12:Envelope> and the soap response is of the form : HTTP/1.1 200 OK
    Content-Type: application/soap+xml; charset=utf-8
    Content-Length: length
    <?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
      <soap12:Body>
        <GetProjectsResponse xmlns="http://www.lightboxedit.com/webservices/">
          <GetProjectsResult>
            <Project>
              <ProjectID>int</ProjectID>
              <ProjectName>string</ProjectName>
            </Project>
            <Project>
              <ProjectID>int</ProjectID>
              <ProjectName>string</ProjectName>
            </Project>
          </GetProjectsResult>
        </GetProjectsResponse>
      </soap12:Body>
    </soap12:Envelope>I would appreciate a lot your help in writing the soap client to call this web service(it should be trivial to any web service expert)
    thank you much.

    >
    In that case, I take back my words. But I must
    comment that it would have been appropriate if you
    would have posted a link to your other post earlier.
    That would have generated some helpful responses by
    this time.May be I didn't succeded to formulate well my question. I apologize..
    I have also written this following code to talk to web service but it's returning : Error can not communicate.
    SoapRequestBuilder s = new SoapRequestBuilder();
                            s.Server = "abourne.dyndns.org";
                            s.MethodName = "GetProjects";
                            s.XmlNamespace = "http://www.lightboxedit.com/webservices/";
                            s.WebServicePath = "http://abourne.dyndns.org/lightboxedit/LBEDataService.asmx";
                            s.SoapAction = s.XmlNamespace+s.MethodName;
                           String response = s.sendRequest();
                         System.out.println(response);
               ------class SoapBuilderRequest.java
    public class SoapRequestBuilder {
         String Server = "";
           String WebServicePath = "";
           String SoapAction = "";
           String MethodName = "";
           String XmlNamespace = "";
           private Vector ParamNames = new Vector();
           private Vector ParamData = new Vector();
           public void AddParameter(String Name, String Data) {
             ParamNames.addElement( (Object) Name);
             ParamData.addElement( (Object) Data);
           public String sendRequest() {
             String retval = "";
             Socket socket = null;
             try {
               socket = new Socket(Server, 80);
             catch (Exception ex1) {
               return ("Error: "+ex1.getMessage());
             try {
               OutputStream os = socket.getOutputStream();
               boolean autoflush = true;
               PrintWriter out = new PrintWriter(socket.getOutputStream(), autoflush);
               BufferedReader in = new BufferedReader(new InputStreamReader(socket.
                   getInputStream()));
               int length = 295 + (MethodName.length() * 2) + XmlNamespace.length();
               for (int t = 0; t < ParamNames.size(); t++) {
                 String name = (String) ParamNames.elementAt(t);
                 String data = (String) ParamData.elementAt(t);
                 length += name.length();
                 length += data.length();
               // send an HTTP request to the web service
               out.println("POST " + WebServicePath + " HTTP/1.1");
               out.println("Host: abourne.dyndns.org");
               out.println("Content-Type: application/soap+xml");
               out.println("Content-Length: " + String.valueOf(length));
               out.println("SOAPAction: \"" + SoapAction + "\"");
               out.println("Connection: Close");
               out.println();
               out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
               out.println("<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">");
               out.println("<soap12:Body>");
               out.println("<" + MethodName + " xmlns=\"" + XmlNamespace + "\">");
               //Parameters passed to the method are added here
               for (int t = 0; t < ParamNames.size(); t++) {
                 String name = (String) ParamNames.elementAt(t);
                 String data = (String) ParamData.elementAt(t);
                 out.println("<" + name + ">" + data + "</" + name + ">");
               out.println("</" + MethodName + ">");
               out.println("</soap12:Body>");
               out.println("</soap12:Envelope>");
               out.println();
               // Read the response from the server ... times out if the response takes
               // more than 3 seconds
               String inputLine;
               StringBuffer sb = new StringBuffer(1000);
               int wait_seconds = 3;
               boolean timeout = false;
               long m = System.currentTimeMillis();
               while ( (inputLine = in.readLine()) != null && !timeout) {
                 sb.append(inputLine + "\n");
                 if ( (System.currentTimeMillis() - m) > (1000 * wait_seconds)) timeout = true;
               in.close();
               // The StringBuffer sb now contains the complete result from the
               // webservice in XML format.  You can parse this XML if you want to
               // get more complicated results than a single value.
               if (!timeout) {
                 String returnparam = MethodName + "Result";
                 int start = sb.toString().indexOf("<" + returnparam + ">") +
                     returnparam.length() + 2;
                 int end = sb.toString().indexOf("</" + returnparam + ">");
                 //Extract a singe return parameter
                 retval = sb.toString().substring(start, end);
               else {
                 retval="Error: response timed out.";
               socket.close();
             catch (Exception ex) {
               return ("Error: cannot communicate.");
             return retval;
         }

  • BI Java-Client Class wizard not started

    Hi all,
    I follow the steps described in http://www.oracle.com/technology/obe/obe_bi/bibeans/bibeans_1012/buildbibeansapps/generatejavaapp.htm
    to build BI Beans Java client application.
    But when I create new Business Intelligence Beans --> Client Tier for OLAP --> Java-Client Class, the BI Java-Client Class wizard not displayed.
    Has anyone get this situation? Please help me.
    The version of Jdeveloper is 10.1.2.2.0 (build 1929) and BI Beans is 10.1.2.2
    Thanks very much.

    That's because a bug in BI bean 10.1.2.2.
    I have to use Jdeveloper 10.1.2.1 with BI Bean 10.1.2.1. I pass that error but another occur :(

  • Unable to connect SOAP to RFC using soap client.

    I have tested the SOAP to RFC sync scenario today using a soap client.I have encountered the following error at the SOAP sender channel.
    "java.lang.NullPointerException
            at com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageOperator.getQualityOfServiceAsString"
    the only possible solution found till now  through forum is to apply SAP NOTE 1239995. As it is confirmed that SAP note 1239995 is already in the system , request you to post it to SAP for getting any OASIS note . I am also posting the message to SDN forum to get some help.
    We are able to connect to the integration server, but are unable to connect through the communication channel.
    Is there any othere OASIS notes need to be applied here? Or any other information is need which i am missing ?
    regards,
    Abhishek

    You are in the right track. Looks like you need latest service pack for the soap channel.  Follow this thread...
    ADAPTER.JAVA_EXCEPTION XMBMessageOperator.getQualityOfServiceAsString error
    This link says
    Error in sending XML from SoapUI to SAP PI 7.11
    This patch level will fix  SAPXIAF06P patch #6 (SP-level #06)
    Edited by: Baskar Gopal on Apr 5, 2011 4:33 PM

  • Wls7.0 soap client jar under wl6 problems

    Hi.
    I downloaded the soap client jar file from a wl7 service. I am trying to package the client jar file and webserviceclient jar file for my ejb under wl6. But when I deploy my application, it says noMethod found exception. It seems that there are some class conflicts of the weblogic client service jar file and wl6 libraries. I badly need help on this.

    True, normal WLS 7.0 web service client will not work
    in WLS 6.1 due to class conflict. So you need to use
    portable client.
    Here is an 8.1 example (It may work on 7.0):
    http://manojc.com/?sample29
    Here is the doc for portable stubs in 7.0:
    http://edocs.bea.com/wls/docs70/webserv/client.html#1061489
    Also, please use the latest 7.0 SP.
    HTHs,
    -manoj
    http://manojc.com
    "Naveed Ahmad" <[email protected]> wrote in message
    news:3ebdb882$[email protected]..
    Hi.
    I downloaded the soap client jar file from a wl7 service. I am trying topackage the client jar file and webserviceclient jar file for my ejb under
    wl6. But when I deploy my application, it says noMethod found exception. It
    seems that there are some class conflicts of the weblogic client service jar
    file and wl6 libraries. I badly need help on this.
    >

  • JAXM & Apache SOAP Clients - Microsoft SOAP Server

    Background:
    According to the article, "SOAP Interoperability with Microsoft and Apache Toolkits - A step by step guide" [http://www.perfectxml.com/articles/xml/soapguide.asp], the following lines of code must be added to the Apache SOAP client:
    1. SOAPMappingRegistry smr = new SOAPMappingRegistry ();
    2. StringDeserializer sd = new StringDeserializer ();
    3. smr.mapTypes (Constants.NS_URI_SOAP_ENC, new QName ("", "Result"), null, null, sd);
    Explanation:
    [ "The Apache SOAP always puts the xsi:type elements for all the parameters in the request (NumberOne and NumberTwo). However, Microsoft SOAP Toolkit does not put the xsi:type of element in the Response (Result).
    If we do not handle this difference, the Apache SOAP implementation would reject the response that the Microsoft SOAP Toolkit generated, because of the absence of the xsi:type attribute of the Result element." ]
    Question:
    Is there a similar way of handling the absence of the xsi:type attribute with the JAXM specification?
    Any help would be appreciated.
    Regards.

    The corrected URL:
    http://www.perfectxml.com/articles/xml/soapguide.asp

Maybe you are looking for

  • IPod seems to be full even though I emptied everything...

    Hi, I have deleted all the songs in my iPod Shuffle and deleted all the files in it as well. However it only gives 1.2 MB available space and I can not move anything to it anymore. This happened after I stuffed it with loads of files until it was ful

  • SSRS 2008: Line chart Y-Axis scale issue

    Hi All, After search of one week, finally decided to put my question in front of you all. Hope I will get some outcome from it. Currently I am working on Line Chart. Following is the data which I need to bind to line chart.     JobStartDate  JobStart

  • Digital additions

    I am a writer.  I have downloaded digital additions at least ten times trying to get it to function.  All I have been able to do so far is upload my book, and see the cover.  When I try to see any of the pages and read my book for editing errors, I c

  • Thunderbird does not get server data for ovi mail

    hi there, i have the following problem: when i try to make an ovi account in my thunderbird mail client, it does not find the right server settings to do so. i searched the net for hints concerning the right settings to set them manually but havent f

  • How to Export the BI Beans report to Excel sheet?

    Hi all, I have a requirement of exporting the report generated by using BI Beans to Excel sheet (*.xls NOT *.csv) Is this possible directly using any feature of BI Beans? If not can I get the java resultset object along with meta data like column hea