Appache Soap 2.2 and WL 7

Hi
     I have upgraded from WL 6.1 to WL 7.0, and I can not get my web service to work
on WL 7.0 using my client written using Appache Soap 2.2. I have tried to invoke
the web service directly from WL 7.0 web page and that works fine, however when
I try to invoke it from my client, it gives me the following error; "not able
to find a Part that is registered with this Message which corresponds to this
SOAPElement"
     Is there any reason why my Apache Soap code worked with WL 6.0 and does not work
with WL 7.0.
Thank you
Dominik

Please check the name of the part in the WSDL. My guess is that the part
name in
the WSDL (server side) is diffrent from the name your apache client use.
-manoj
"Dominik Vltavsky" <[email protected]> wrote in message
news:[email protected]..
>
Hi
I have upgraded from WL 6.1 to WL 7.0, and I can not get my web service towork
on WL 7.0 using my client written using Appache Soap 2.2. I have tried toinvoke
the web service directly from WL 7.0 web page and that works fine, howeverwhen
I try to invoke it from my client, it gives me the following error; "notable
to find a Part that is registered with this Message which corresponds tothis
SOAPElement"
Is there any reason why my Apache Soap code worked with WL 6.0 and doesnot work
with WL 7.0.
Thank you
Dominik

Similar Messages

  • One WAR containing soap 1.1 and soap 1.2

    can anybody tell me how to package a web service into one war file that supports soap 1.1 and 1.2 in ANT? Is it possible to do it?
    Thanks.

    ya it is possible to make the webservice as war file. It just like creating jsp or servlet application.
    In your WEB-INF directory u need to have your webservice configuration file(wsdd) and classes shud be under classes directory..
    Niraimathi R

  • SOAP to EMAIL and sending the response to SOAP by integration process

    Hi,
    I need to design a scenario from SOAP  TO EMAIL and based on the status of the EMAIL being sent i need to send the response to SOAP using integration.If it is SUCCESSFUL message i need to send success and if the mail is not sent i need to send error .
    could some one help how to design the Integration process for this scenario?will help me what steps i need to use for this .
    Thanks
    Rajesh

    Hi Rajesh,
    You can achieve this by making  synchronous Interfaces.
    1) create Synchronous Outbound and Inbound Service Interface.
    2) So you will need to create a response mapping as well.
    You get a response from mail adapter in the following format, use this as response Message Type:
    - <xim:MailReceipt xmlns:xim="http://sap.com/xi/XI/Mail/30">
      <Server>smtp://xx.xxx.xx.xx</Server>
      <Greeting>wlg-exht2.XYZ.com Microsoft ESMTP MAIL Service ready at Fri, 28 Jan 2011 20:10:28 +1300</Greeting>
      <Format>XIALL</Format>
      <UseMailPackage>false</UseMailPackage>
      <Encoding>base64</Encoding>
      <Subject>Sync Test</Subject>
      <From>"From e mail address</From>
      <To>"To e mail address"</To>
      <Date>2011-01-28T07:10:29Z</Date>
      <MailID>1.2.3</MailID>
      </xim:MailReceipt>
    By this I think you can give the status of Mail.
    Regards,
    Aravind

  • How to parse SOAP XML output and load to oracle9i table

    Below is the SOAP output response and I need to load the data into oracle 9i database tables.
    I am able to parse regular XML without namespaces but unable to parse the data with namespaces.
    I would need help in parsing this XML.
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <s:Header>
    <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <u:Timestamp u:Id="_0">
    <u:Created>2011-11-04T23:16:08.437Z</u:Created>
    <u:Expires>2011-11-04T23:21:08.437Z</u:Expires>
    </u:Timestamp>
    </o:Security>
    </s:Header>
    <s:Body>
    <AssetGetListResponse xmlns="http://dev.services.xerox.com">
    <AssetGetListResult xmlns:a="http://schemas.datacontract.org/2004/07/Xerox.MPS" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <a:AssetFeed>
    <a:AccountID>de5862bf-f223-e011-bd3b-0024e861b15c</a:AccountID>
    <a:AccountName>MPS-API Sandbox</a:AccountName>
    <a:AssetID>ecf1545a-f1e9-e011-8a8a-0024e861b15c</a:AssetID>
    <a:AssetNumber>57119B28</a:AssetNumber>
    <a:AssetTag3rdParty i:nil="true"/>
    <a:ChargebackCodeID>1a5962bf-f223-e011-bd3b-0024e861b15c</a:ChargebackCodeID>
    <a:ContractNumber i:nil="true"/>
    <a:ContractTypeDescription i:nil="true"/>
    <a:ControlID i:nil="true"/>
    <a:Group i:nil="true"/>
    <a:GroupID i:nil="true"/>
    <a:InScope>false</a:InScope>
    <a:MACAddress>0000AA713E97</a:MACAddress>
    <a:Manufacturer>Xerox</a:Manufacturer>
    <a:Model>WorkCentre Pro 265</a:Model>
    <a:ModifiedDate>2011-11-02T16:52:12.947Z</a:ModifiedDate>
    <a:PricePlanID>c25a62bf-f223-e011-bd3b-0024e861b15c</a:PricePlanID>
    <a:SerialNumber>UTU101993N</a:SerialNumber>
    <a:VersionNumber>634558495329470000</a:VersionNumber>
    </a:AssetFeed>
    <a:AssetFeed>
    <a:AccountID>de5862bf-f223-e011-bd3b-0024e861b15c</a:AccountID>
    <a:AccountName>MPS-API Sandbox</a:AccountName>
    <a:AssetID>b33b5160-f1e9-e011-8a8a-0024e861b15c</a:AssetID>
    <a:AssetNumber>7EE42ADC</a:AssetNumber>
    <a:AssetTag3rdParty i:nil="true"/>
    <a:ChargebackCodeID>1a5962bf-f223-e011-bd3b-0024e861b15c</a:ChargebackCodeID>
    <a:ContractNumber i:nil="true"/>
    <a:ContractTypeDescription i:nil="true"/>
    <a:ControlID i:nil="true"/>
    <a:Group i:nil="true"/>
    <a:GroupID i:nil="true"/>
    <a:InScope>false</a:InScope>
    <a:MACAddress>0800379B4C2A</a:MACAddress>
    <a:Manufacturer>Xerox</a:Manufacturer>
    <a:Model>WorkCentre 7428</a:Model>
    <a:ModifiedDate>2011-11-02T16:52:14.383Z</a:ModifiedDate>
    <a:PricePlanID>c25a62bf-f223-e011-bd3b-0024e861b15c</a:PricePlanID>
    <a:SerialNumber>PBB015012</a:SerialNumber>
    <a:VersionNumber>634558495343830000</a:VersionNumber>
    </a:AssetFeed>
    </AssetGetListResult>
    </AssetGetListResponse>
    </s:Body>
    </s:Envelope>
    This is what I tried.
    declare
    lp_parser xmlParser.Parser;
    lx_xmldoc xmlDom.DOMDocument;
    ln_doc_node xmlDom.DOMNode;
    lnl_product xmlDom.DOMNodeList;
    lnl_meter xmlDom.DOMNodeList;
    ln_product xmlDom.DOMNode;
    ln_meter xmlDom.DOMNode;
    li_product_cnt NUMBER;
    li_product_max NUMBER;
    li_meter_cnt NUMBER;
    li_meter_max NUMBER;
    lnl_asset_meter_nodes xmldom.DOMNodeList;
    ln_asset_meter_node xmldom.DOMNode;
    ls_batch_number VARCHAR2(30);
    ldt_proc_dt DATE;
    ls_batch_item VARCHAR2(30);
    ls_place_id place.place_id%TYPE;
    ls_product_id product.product_id%TYPE := ' ';
    ls_contract_id contract.contract_id%TYPE;
    li_contract_version contract.contract_version%TYPE;
    li_contract_sequence contr_product.sequence%TYPE;
    ls_meter_id meter_log.meter_id%TYPE;
    ls_read_type meter_log.read_type%TYPE;
    ldt_reading_dt meter_log.reading_dt%TYPE;
    li_meter_value meter_log.meter_value%TYPE;
    li_adjust_copies meter_log.meter_value%TYPE;
    ls_meter_type VARCHAR2(20);
    ls_serial_id product.serial_id%TYPE;
    ls_meter_read_type VARCHAR2(50);
    invalid_parsing EXCEPTION;
    PRAGMA EXCEPTION_INIT(invalid_parsing, -20100);
    BEGIN
    FOR meter_xml_rec IN (SELECT SOAP_RESPONSE
    FROM temp_table
    WHERE call_id=2) LOOP
    lp_parser := xmlparser.newParser;
    xmlparser.parseClob(lp_parser, meter_xml_rec.SOAP_RESPONSE);
    lx_xmldoc := xmlparser.getDocument(lp_parser);
    xmlparser.freeParser(lp_parser);
    ln_doc_node := xmlDom.makeNode(lx_xmldoc);
    ls_batch_number := xslProcessor.valueOf(ln_doc_node, 'AssetGetListResponse/AssetGetListResult/AssetFeed/AccountID');
    lnl_product := xslprocessor.selectNodes(ln_doc_node, 'AssetGetListResponse/AssetGetListResult/a:AssetFeed');
    li_product_max := xmlDom.getLength(lnl_product)-1;
    FOR li_product_cnt IN 0..li_product_max LOOP
    ln_product := xmlDom.item(lnl_product, li_product_cnt);
    ls_batch_item := xslProcessor.valueOf(ln_product, 'AccountName');
    END LOOP;
    END LOOP;
    END;
    OUTPUT:
    =========================================
    3:32:41 PM *
    **3:32:41 PM ORA-20100: Error occurred while processing: Namespace prefix 'a' used but not declared.**
    3:32:41 PM ORA-06512: at "SYS.XSLPROCESSOR", line 22
    3:32:41 PM ORA-06512: at "SYS.XSLPROCESSOR", line 502
    3:32:41 PM ORA-06512: at line 50
    3:32:41 PM *** Script stopped due to error ***
    3:32:41 PM End SQL Editor Execution

    Hi,
    Something like this :
    lnl_product := xslprocessor.selectNodes(
                     ln_doc_node
                   , '/s:Envelope/s:Body/AssetGetListResponse/AssetGetListResult/a:AssetFeed'
                   , 'xmlns:s="http://schemas.xmlsoap.org/soap/envelope/", xmlns="http://dev.services.xerox.com", xmlns:a="http://schemas.datacontract.org/2004/07/Xerox.MPS"'
    li_product_max := xmlDom.getLength(lnl_product)-1;
    FOR li_product_cnt IN 0..li_product_max LOOP
      ln_product := xmlDom.item(lnl_product, li_product_cnt);
      ls_batch_item := xslProcessor.valueOf(ln_product, 'a:AccountName', 'xmlns:a="http://schemas.datacontract.org/2004/07/Xerox.MPS"');
    END LOOP;
    ...Or, using a single query :
    SQL> SELECT extractValue(value(x), '/AssetFeed/AccountID', 'xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS"') as AccountID
      2       , extractValue(value(x), '/AssetFeed/AccountName', 'xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS"') as AccountName
      3       , extractValue(value(x), '/AssetFeed/AssetID', 'xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS"') as AssetID
      4       , extractValue(value(x), '/AssetFeed/AssetNumber', 'xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS"') as AssetNumber
      5       , extractValue(value(x), '/AssetFeed/SerialNumber', 'xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS"') as SerialNumber
      6  FROM temp_table t
      7     , TABLE(
      8         XMLSequence(
      9           EXTRACT(
    10             XMLType(t.soap_response)
    11           , '/s:Envelope/s:Body/AssetGetListResponse/AssetGetListResult/a:AssetFeed'
    12           , 'xmlns:s="http://schemas.xmlsoap.org/soap/envelope/", xmlns="http://dev.services.xerox.com", xmlns:a="http://schemas.datacontract.org/2004/07/Xerox.MPS"'
    13           )
    14         )
    15       ) x
    16  WHERE t.call_id = 2
    17  ;
    ACCOUNTID                                      ACCOUNTNAME           ASSETID                                   ASSETNUMBER    SERIALNUMBER
    de5862bf-f223-e011-bd3b-0024e861b15c           MPS-API Sandbox       ecf1545a-f1e9-e011-8a8a-0024e861b15c      57119B28       UTU101993N
    de5862bf-f223-e011-bd3b-0024e861b15c           MPS-API Sandbox       b33b5160-f1e9-e011-8a8a-0024e861b15c      7EE42ADC       PBB015012

  • V.V.Urgent( Soap- XI- RFC) and Viceversa

    Hi,
    I am Integrating Webservice with SAP.
    I am Using soap and RFC adapters for this .....
    I want the Information from Creating SLD...
    How to create logical system for SOAP...
    and also for RFC   (  Both Sender and Receiver adapters)
    Points will be awarded for the answer..
    Regards,
    jayasimha jangam.

    Hi !!
    Check this out..
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009 --> <b>Troubleshooting SOAP and RFC scenarios</b>.
    heck these links related to SOAP and RFC:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f222711d10c0
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    /people/community.user/blog/2006/09/21/xi-rfcadapter-reconnect-issue
    /people/michal.krawczyk2/blog/2005/08/22/xi-maintain-rfc-destinations-centrally
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi - Invoke Webservices using SAPXI
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    regarding HTTP* Errors /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi

  • URGENT: SOAP 1.1 and 1.2 Support in OSB Proxy

    Gurus,
    My OSB proxy services should support SOAP 1.1 and 1.2 versions. However, WSDL based Proxy service has only one endpoint. (This is the limitation as per an Oracle document.) This endpoint is one which you select while creating a proxy service from WSDL.
    Now, as a result, the service is not able to serve both the 1.1 and 1.2 requests.
    As a workaround, I've created two proxy services from the same WSDL (which has both the endpoints/bindings).
    And, i publish two endpoints to the user.
    Is there any way to trick the proxy WSDL (effective WSDL) to have two ports (endpoints) in it ?
    If not, what are the best practices to tackle this situation?
    Thanks in advance for your help on this.
    With regards-
    Ashish
    Edited by: user570355 on 2012. 9. 24 오후 3:47

    Hi Ashish,
    I don't think there's a way to trick the proxy but, as you know, soap 1.1 and 1.2 have slightly different envelope formats (e.g. fault handling) so you'll probably need some kind of specific message processing or transformation, sometime in the future, for handling both soap 1.1 and soap 1.2 requests. This makes your approach correct, in my opinion.
    Do you have a local proxy for handling service logic?
    I think you should follow something similar to this: http://docs.oracle.com/cd/E23943_01/dev.1111/e15866/local.htm#i1075772.
    Your minimum configuration - 3 proxies:
    SOAP 1.1 Proxy, SOAP 1.2 proxy and a Local Proxy
    Using this approach:
    *1 -* The Local Proxy should handle Business Service calls, additional logic, etc. You'll probably have to configure this as "Any XML" proxy and use some kind of internal message format (your own schema) because, if you configure it as "Any SOAP", you'll be forced to choose between SOAP 1.1 and SOAP 1.2.
    - routes responses from Business Services to the correct SOAP 1.x Proxy
    *2 -* For each SOAP 1.x Proxy
    - receives soap 1.x messages and transforms them to some kind of internal schema -> routes them to the Local Proxy for processing
    - transforms any kind of responses coming from the Local Proxy back to soap 1.x format and routes responses to the client
    I hope this can be of any help to you,
    Regards,
    Filipe

  • OSB: Soap 1.1 and Soap 1.2

    Hello i am tasked with a wsdl file that contains two port types one with soap 1.1 and the other with soap 1.2
    Now I need both the soap 1.1 and soap 1.2 to be available to the end user
    however in osb when creating the proxy service i am forced to choose either hte soap 1.1 binding or the soap 1.2 binding... will i have to create two separate proxy services for each or is there a way to have it where one proxy service can support both soap types?

    How come a SOAP 1.2 request can go through the whole flow even though the local PS and provider BS I chose the SOAP 1.1 ports?Make your PS_3 as Any XML Service proxy service and the select Local Transport.
    come a SOAP 1.2 request can go through the whole flow even though the local PS and provider BS I chose the SOAP 1.1 ports?Your PS_3 can accept both SOAP1.1 and SOAP1.2 as it's based on Any XML service.
    Regards,
    Abhinav

  • SOAP to IDOC and then send back acknowledgement

    Hi All
    I have SOAP to IDOC scenario which is successfully working.
    Now the requirement is SOAP needs an accknowledgement that IDOC is successfully posted.
    What are the ways to achieve this, please help.
    Regards
    Dheeraj Kumar

    hi,
    point no 1. as Grzegorz explanied with examples:
    http://wiki.sdn.sap.com/wiki/display/ABAP/HandlingIdocAcknowledgements
    but it's better to use a custom idoc in this case (approach No 2.)
    why ?
    as standard IDOC for ack can be used in PI for message acknowledgment and you may need it in the future
    so it's better to copy the standard one into a custom on and use it for your SOAP scenario only
    and not mix with the srandard one - at least that's what I'd do
    in my book:
    http://www.sap-press.com/products/Mastering-IDoc-Business-Scenarios-with-SAP-NetWeaver-PI.html
    you can also find out with screenshots how to work with IDOCs and IDOC acknowledgments
    Regards,
    Michal Krawczyk

  • Interoperability between apache soap toolkit(client)and ms soap toolkit

    Interoperability between apache soap toolkit(client)and ms soap toolkit.Give me an example where i can send and receive a complex data type from apache tomcat in client side to ms soap toolkit on the server side.It is urgent.Plz try to give me a solution as soon as possible.

    The toolkits don't have to work together at all. And by the way, you aren't sending the data to the MS toolkit, you're sending it to some MS product that can process the data. Any data that follows the standards should work.

  • Wsdl support for both soap 1.1 and 1.2

    Hello,
    Is it possibile to support both soap 1.1 and 1.2 using jaxws annotations? (MTOM enabled)
    Thanks,
    Ioana.

    Openlink Software provides type-1 and type-3 JDBC drivers compliant with JDK 1.2.x. Visit them at http://www.openlinksw.com, and more specifically, http://www.openlinksw.com/info/docs/rel3doc/jdbc/jdbcindx.htm
    Best regards,
    Stephen Schadt

  • WSDL Wizard w/ SOAP, RequestContext, ComplexType and WSSE

    Is it possible to run the wizard against a WSDL that uses a Request Context, SOAP, WSSE security and required input as a complexType?
    I've tried it and while it generated all the service and value objects, any time I try invoking the service, I get the following error:
    Array of input arguments did not contain a required parameter at position 1
    I don't even think the document is being sent to the server.
    I've read that in FB3, the wizard didn't handle SOAP services right and would ignore headers - I'm just trying to establish if it works at all and if I should continue trying to sort this out.
    The request document should look something like this:
    <soapenv:Envelope
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header>
          <wsse:Security
              xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
             <wsse:UsernameToken>
                <wsse:Username>12345</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">12345</wsse:Password>
             </wsse:UsernameToken>
          </wsse:Security>
          <rc:RequestContext
              xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:rc="http://www.mydomain.com/crme/request-context.xsd">
             <rc:Property rc:key="username">12345</rc:Property>
             <rc:Property rc:key="sourceapp">12345</rc:Property>
          </rc:RequestContext>
       </soapenv:Header>
       <soapenv:Body>
          <s0:getAssociatePortfolioByNBID
              xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
              xmlns:s0="http://www.mydomain.com/wsdl/gpbs/associatePortfolio/AssociatePortfolioService/v001"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema">
             <s0:nbid>NBD2ZXN</s0:nbid>
             <s0:attributeGroup>PARTYID</s0:attributeGroup>
          </s0:getAssociatePortfolioByNBID>
       </soapenv:Body>
    </soapenv:Envelope>
    Thanks!

    I was running into similar issues attempting to send a complex-typed request to a SOAP service.  Right up to the same error message, actually.  After a lot of googling and a little experimentation, I came up with an adjustment to the generated code that makes it work.
    (OBVersionDisclosure:  Flash Builder 4, Flex 4 SDK.)
    The generator produced an ActionScript class called [servicename], along with one named _Super_[servicename].  This service class gives you asynchronous RPC-style access to your SOAP methods.  For what we're doing, though, ignore the [servicename] class -- all the action is in the _Super_[servicename] class.
    Anyway, for each of these SOAP methods there is a same-named method on the Super class.  So if your SOAP method is named [mycall] and takes a data structure named [mycallstruct], it made an AS method that looks like this:
        public function [mycall]([mycallparam]:valueObjects.[mycallstruct]) : AsyncToken
            model_internal::loadWSDLIfNecessary();
            var _internal_operation:AbstractOperation = _serviceControl.getOperation("[mycall]");
            var _internal_token:AsyncToken = _internal_operation.send([mycallparam]) ;
            return _internal_token;
    Which should be fine, except that it's throwing that "did not contain a required parameter" fault.
    Long story short:  It looks like the send(args) form of the remote operation call is a little broken.  Because all I had to do to make this method work as advertised is this:
        public function [mycall]([mycallparam]:valueObjects.[mycallstruct]) : AsyncToken
            model_internal::loadWSDLIfNecessary();
            var _internal_operation:AbstractOperation = _serviceControl.getOperation("[mycall]");
            _internal_operation.arguments = [mycallparam];
            var _internal_token:AsyncToken = _internal_operation.send() ;
            return _internal_token;
    which is the call form I found in posted code for previous versions of Flex.
    Well, that's the extent of my knowledge on the subject.  Hope it's helpful.

  • SOAP Reponse contains and instead of and

    I am new to Web Services. I wrote a simple SOAP client in Java. It seems to work and I get the SOAP response back; however the XML response has < and > instead of < and >. Am I making a mistake in my source code? I have placed my source code below and the result that I get when I run the code.
    Webservice Endpoint: http://www.webservicex.net/stockquote.asmx
    WSDL Location: http://www.webservicex.net/stockquote.asmx?wsdl
    SOAP Response that I get:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.
    xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
    " xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetQuoteResponse xmln
    s="http://www.webserviceX.NET/"><GetQuoteResult><StockQuotes><Stock>
    <Symbol>IBN</Symbol><Last>38.58</Last><Date>7/30/2
    010</Date><Time>10:24am</Time><Change>-0.35</Change&g
    t;<Open>38.42</Open><High>38.86</High><Low>38.29&l
    t;/Low><Volume>314170</Volume><MktCap>21.505B</MktCap&gt
    ;<PreviousClose>38.93</PreviousClose><PercentageChange>-0.90%&
    lt;/PercentageChange><AnnRange>28.53 - 45.95</AnnRange><Earns&
    gt;1.782</Earns><P-E>21.85</P-E><Name>ICICI Bank Limite&
    lt;/Name></Stock></StockQuotes></GetQuoteResult></GetQuoteRespons
    e></soap:Body></soap:Envelope>
    SOAP response that I am expecting:
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.
    xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
    " xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetQuoteResponse xmln
    s="http://www.webserviceX.NET/"><GetQuoteResult><StockQuotes><Stock>
    <Symbol>IBN</Symbol><Last>38.58</Last><Date>7/30/2
    010</Date><Time>10:24am</Time><Change>-0.35</Change&g
    t;<Open>38.42</Open><High>38.86</High><Low>38.29&l
    t;/Low><Volume>314170</Volume><MktCap>21.505B</MktCap&gt
    ;<PreviousClose>38.93</PreviousClose><PercentageChange>-0.90%&
    lt;/PercentageChange><AnnRange>28.53 - 45.95</AnnRange><Earns&
    gt;1.782</Earns><P-E>21.85</P-E><Name>ICICI Bank Limite&
    lt;/Name></Stock></StockQuotes></GetQuoteResult></GetQuoteRespons
    e></soap:Body></soap:Envelope>
    Source Code:
    import java.net.*;
    import java.io.*;
    public class stocksoapClient {
      public final static String DEFAULT_SERVER = "http://www.webservicex.net/stockquote.asmx";
      public final static String SOAP_ACTION = "http://www.webserviceX.NET/GetQuote";
      public static void main(String[] args) {
        String input = "IBN";
        String server = DEFAULT_SERVER;
        if (args.length >= 2) server = args[1];
        try {
               Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxy.compaq.com", 8080));        
               URL u = new URL(server);
               URLConnection uc = u.openConnection(proxy);
               HttpURLConnection connection = (HttpURLConnection) uc;
               connection.setDoOutput(true);
               connection.setDoInput(true);
               connection.setRequestMethod("POST");
               connection.setRequestProperty("Content-Type",  "text/xml; charset=utf-8");
               connection.setRequestProperty("Content-Length",  String.valueOf(input.length()));
               connection.setRequestProperty("SOAPAction", SOAP_ACTION);
               //connection.connect();
               OutputStream out = connection.getOutputStream();
               Writer wout = new OutputStreamWriter(out);
               //wout.write("POST" + DEFAULT_SERVER  + "HTTP/1.1");
               //wout.write("Host:www.webservicex.net");
               //wout.write("Content-Type: text/xml; charset=utf-8");
               //wout.write("Content-Length: " + String.valueOf(input.length()));
               //wout.write("SOAPAction:" + SOAP_ACTION);         
              //wout.write("\n");     
               wout.write("<?xml version='1.0' encoding='utf-8'?>"); 
               wout.write("<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/'>");
               wout.write("<soap:Body>");
               wout.write("<GetQuote xmlns='http://www.webserviceX.NET/'>");
               wout.write("<symbol>"+input+"</symbol>");
               wout.write("</GetQuote>");     
               wout.write("</soap:Body>");
               wout.write("</soap:Envelope>");
               wout.flush();
               wout.close();
               BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream()));
               String line;     
               //InputStream in = connection.getInputStream();
               //int c;
               while ((line=rd.readLine()) != null) {
                  System.out.println(line);
               rd.close();
        } catch (IOException e) {
               System.err.println(e);
    }

    I meant to say my SOAP response contains "&lt" and "&gt" instead of < and >.
    Edited by: [email protected] on Jul 30, 2010 7:44 AM
    Edited by: [email protected] on Jul 30, 2010 7:44 AM

  • SOAP sender adapter and XI adapter reusablity

    Hi,
    We are having good amount of interfaces using SOAP sender and XI Adapters (WS to Proxy scenarios).
    My question is :
    we can make reuse of Sender SOAP and Rcvr XI adapters in all scenarios.
    If we reuse these adapters in all our interfaces what are the limitations and any problems we may face in future?
    Replies will be highly helpful.
    Thanks
    Kishore
    Edited by: kishore kumar on Jan 21, 2010 7:23 PM

    SOAP sender depends on the Sender Message Interface and Namespace (in versions lower than SAP PI7.1) so if your scenarios satisfy these parameters then you can (rather should) re-use the channels.
    Similarly for the PROXY receiver channel....if the proxy is being hosted on one particular receiver SAP ECC system then the details in all the channels that you create will be the same and wont be recommended....hence even this can be re-used.
    There is no issue in re-using the channels....just that you should closely monitor these channels to ensure that they do not stop/ fail causing all the involved interfaces to stuck.
    Regards,
    Abhishek.

  • SOAP Scenario-Sender and receiver having same structure- Mapping Required?

    Hi,
    We are having a SOAP to SOAP scenario. In that the sender and receiver are having same structure. Is it possible to by-pass mapping and just do the configuration from ID
    Thanks and regards,
    Siji Anup

    Hi Siji,
    AFAIK you can skip ESR development. Check the example in this blog When and how to create an scenario in SAP PI without mapping objects.
    Regards.

  • SOAP adapter installation and activation

    We have installed XI 3.0 SR1 and wish to enable the sender SOAP adapter to receive SOAP messages from a different (PeopleSoft) system.  The documentation we have found really seems to be lacking in the area on installing and activating the SOAP adapter.  We are fine with the configuration pieces, but first activating the SOAP adapter is our problem.
    1) Is the SOAP adapter part of the Central Adapter Engine or do we need to install the Plain J2SE Adapter Engine on our XI server to get the SOAP adapter?
    2) If the SOAP adapter is part of the Central Adapter Engine, how do I 'activate' it?
    When I view the Adapter Monitor (http://<XIserver>:<J2EEport>/AdapterFramework/monitor/monitor.jsp) I see a line item for the SOAP adapter but it is grayed out.  Also, when browsing J2EE with the Visual Admin Tool, I find the following adapters, but no SOAP...
    SAP XI Adapter: BC
    SAP XI Adapter: File
    SAP XI Adapter: JDBC
    SAP XI Adapter: JMS
    SAP XI Adapter: Mail
    SAP XI Adapter: Marketplace
    SAP XI Adapter: RFC
    SAP XI Adapter: XI
    Any advice would be appreciated.  We see our next option as either applying XI Support Packages which will hopefully correctly deploy the SOAP adapter in case this was an installation problem, or to install the Plain J2SE Adapter Engine.  Thank you!

    Hi Jeff,
    XI 3.0 the SOAP Call goes to the Java Port 50000 plus instance number * 100. And the URL is different.
    It goes to a servlet and the URL is:
    http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel
    without a party name it is:
    http://host:port/XISOAPAdapter/MessageServlet?channel=:service:channel
    Monitoring is in the SXMB_MONI or the Runtime workbench, the adpater monitor does not give you details.
    Here is the link to the help docu:
    http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    It is not too bad and as I said it works fine both ways.
    Cheers
    Stefan

Maybe you are looking for

  • Unable to perform OCR with unkown error

    I have acrobat X Pro. When I try OCR on a scanned image, I get the following error message "Acrobat could not perform recognition (OCR) because: Unable to process the page because the Paper Capture recognition service experienced an error. (6)"   The

  • Downloading videos - why 2 of the same?

    I've purchased a couple of TV shows to download and when I look at the d/l status it shows 2 of the same shows d/l'ing...on in HD and one not. I know I only clicked "purchase" one time. Am I being charged twice for the same show?

  • Changed name of home and lost all app config

    I changed the name of my home folder from "matthewcrossley" to "mjc". Much to my dismay I lost all of my safari bookmarks and configurations. Mail also asks me to set it up all over again. I had a highly personalized machine and would like to undue t

  • HT1848 I have an I-phone and my music purchased from i-tunes will not transfer onto my new computer.

    I have an I-phone and my music purchased from i-tunes will not transfer from my I-phone to my new PC.

  • Question on safe senders list on internet email

    Hi, I am having problems in that I don't seem to be able to add certain safe email addresses to my on-line emal account.  I can add them okay in Outlook but that doesn't seem to work when I check my email on-line.  Anybody out there experienced the s