SYNC- PROXY  TO SAP ABAP WEBSERVICE

Dear Collegues,
               My scenario is synchronous to abap web service.
<b>i have picked up the wsdl file from IJA-R/3 system as mentioned by book.</b>
<b>the url mentioned for target saop adapter is :</b>
http://Q4INPUSY006.in-pune.t-systems.com:8002/sap/bc/soap/rfc/sap/ZSYNCCONNECTIONDET?sap-client=300
when i execute the proxy , i get this error
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Call Adapter
  -->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
  <SAP:Category>XIAdapterFramework</SAP:Category>
  <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
  <SAP:P1 />
  <SAP:P2 />
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText><b>com.sap.aii.af.ra.ms.api.DeliveryException: java.io.IOException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText></b>   <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack />
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error>
can any one throw some pointers reg this,
Regards
chandra

Hi
Your web service doesn't return SOAP xml. It returns HTML. I think this page contains error information. May be error in authentication. 
Check url
http://Q4INPUSY006.in-pune.t-systems.com:8002/sap/bc/soap/rfc/sap/ZSYNCCONNECTIONDET?sap-client=300

Similar Messages

  • ABAP Proxy synchronous call to webservices

    Hi,
          I have the following synchronous scenario.
      SAP R/3 outbound proxy <-> SAP XI <--> Webservices.
    When I try to execute the proxy Execute synchronous,I am getting the following exception caught.
    CX_AI_SYSTEM_FAULT.
    What could be the possible reason for the exception to be thrown?
    Thanks,
    Leo

    Hi,
    This exception is thrown when there is an error in XI in a sync call.
    What does your message display show in SXMB_MONI in XI ?
    Kind regards
    Colin.

  • SAP ABAP Client proxy Errror occured when determining the Business system.

    Dear Friends
       I am trying to push data from ECC to PI and then MS-SQL Server. My SAP scenario is ABAP Proxy to JDBC
      I have created on Enhancement Implementation for AS01 ( Asset Master creation). Here I am calling my ABAP proxy and uploading ANLA and ANLZ strucutre  to my abap proxy.  but I get the run time error. that suggest Error occurred while determining the Business system - SLD_API_Exception.
    My all IR and ID objects are activated, I have tested the scenario successfully without error in ID, 
    When I check SM21 it suggest that error is due to XI is unable to access the SLD. Could_not_determine_sld_access_data.
    SLDCHECK works fine in PI system.
    SLDCHECK is failed in my ECCDEV 400 client System.
    Is it mandatory to configure SLD access in ecc development system as well ?  is this  the reason why I am not able to push the data to my PI system? Please tell me How can I solve this error? you any answer will be appreciated greatly.
    Please look the below link it contains the enhancement code of AS01 transaction code where I am calling abap proxy to send the data.  Runtime analysis report, SM21 log, and SLDCHECK failed screen shot in 400 client. SLD working fine in PI system. my SLD is configured in SOLMAN system.
    You can see the error and Code from this link ->  [Code , Runtime Dump Analysis report, SM21 Log and SLDCHECK|http://www.scribd.com/doc/61192432/Sap-Abap-Proxy-Error]
    Please help me How can I solve this ?
    Regards
    Naeem

    Hi Naeem,
    >>>is it mandatory to configure SLD access in ecc development system as well ? is this the reason why I am not able to push the data to my PI system? Please tell me How can I solve this error? you any answer will be appreciated greatly
    YES...you need to configure SLD check in your ECC System also
    Also check the links below for proxy connectivity step by step
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d69314-1be0-2b10-11ab-8045021f0c3a?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0ac1a33-debf-2c10-45bf-fb19f6e15649?quicklink=index&overridelayout=true
    Regards,
    Naveen

  • Sync Proxy alerting in SAP

    Hi,
    I have a scenario as follows:
    SAP sender sync proxy -> PI -> JDBC (action = update_insert)
    The JDBC receiver adapter will send back the number of records updated or inserted. My question is how to raise an alert in SAP based on the response from the JDBC adapter? For example if the result says no records were updated or inserted I would like to raise an alert in SAP/PI.
    Do I simply define the Sender Interface to include a response and standard fault? then use a suitable method to raise a fault exception in SAP? Can the fault on a sync proxy be used in this way?
    I know there is a blog that shows how to raise an alert for an async proxy scenario: Fault Message Types - A Demo (Part 1).
    Thanks
    Che

    Hi Che,
    The blog gives the details for fault response from receiver. In your case you will receive the response from JDBC in one format for successful and no update message.
    For your requirement, you can raise alert in UDF. But do you want to stop the message and raise alert? Or pass the message.
    Please check the below blog
    Hacking: To get error from the PI Mapping Mapping realtime.
    I think the response should go to sender (proxy) and alert or further action should handle in proxy.
    regards,
    Harish

  • Forward Proxy Authentication SAP Webservice Framework HELP!

    Hi,
    i have built as WS Client using the SAP Standalone Proxy. The client will utilize a forward proxy to access my Webservice. Unfortunately the documentation does only give information how to set the proxy address and port:
    port._setProperty"javax.xml.rpc.http.proxyhost","proxy");
    port._setProperty("javax.xml.rpc.http.proxyport","8080");
    The is no hint how to set a proxy user and password? Does anybody know the answer to my question here?
    Cheers,
    Heiko

    Hi Heiko,
    Get SecurityProtocol as described <a href="http://help.sap.com/saphelp_nw04/helpdata/en/ab/c955e2e2d24a888127f211f2d5043f/frameset.htm">here</a> .
    Use methid <i>public void addHeader(String key, String value)</i> to add HTTP header:
    String authString = "username" + ":" + "password";
    String auth = "Basic " + new sun.misc.BASE64Encoder().encode(authString.getBytes());
    securityProtocol.addHeader("Proxy-Authorization", auth);
    Best regards, Maksim Rashchynski.

  • How to active ABAP Proxy in SAP system.

    Hi All,
         I want to work with ABAP proxies.How to active ABAP proxy in SAP system.What the configuration is needed.Is there any configuration is need in XI system to work with ABAP proxies.Please help me..
    Thanks,
    Kishan.

    Hi Kishan,
    You have to check whether ur r/3 system's(WAS 620 or above) excahnge profile has entries for integration builder.
    Pls check the Example configuration for accessing
    interfaces in the Integration Repository (exchange profile):
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/content.htm
    If the Parameters are not there u need to add in the respective section's as provided in the link.
    exchange profile URL is:
    http://r3servername:5<instance>00/exchangeProfile
    I hope this provides you a solution.
    Regards.
    Praveen

  • JAVA webservice to ABAP Webservice

    Hi,
    There is a Webservice developed in Java and published.
    The same webservice we are now develping in ABAP. Though there is no change in the functionality of the webserice, the WSDL generated for ABAP webservice is looking different than the one for JAVA. How to resolve this issue? I do  not want to ask the service consumer to regenerate the Clinet Proxy for the new WSDL.
    Could you please help me in resolving this issue?
    Thanks & Regards,
    Kishore Babu T

    Hello Johannes,
    Which WSDL do I need ? In the wsnavigator I can choose RPC or Document, and then Default or SAP_WSDL to download the WSDLs.
    Try this: [Accessing a Service|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b8/a3cca166d440c29931c0c5494c32e5/frameset.htm]
    And do I need to publish the webservice (which I want to consume) on the Java stack ? or ist it already published when the wsnavigator can access it ? (the service resides on the Java stack, and I want to consume it from the ABAP stack from the same system)
    In short, no. You can safely use the Web service without publishing it - as Olivier explained, you need only the WSDL.
    The "publishing" term is usually used when you register (publish) a Web service in the UDDI server or the Services Registry. Publishing is only relevant if you want other people to be able to locate the registered service in the UDDI server.
    Hope this helps,
    Rossen

  • Sync Proxy to SOAP Scenario

    HI All,
    Scenario: Sync Proxy to SOAP Scenario.
    just wanted to know below
    1) is it possible to Test the sync Scenario using SOAP UI or any other tools when SOAP is target?
    2)Is it possible to Trigger a Proxy Message  from ABAP system and Get the response back to ABAP when only proxy setting are done with out any coding in the ABAP? (Jus wanted to test whether scenario is working fine)
    Regards,
    Mani

    In a synch scenario, you only need to configure it like it is an asynch scenario. The only exception is that the service interfaces are synchronous. Each synch service interface requires at least two messages (request and response), fault message is optional. So for your scenario, at least four messages are required
    1.) 1st message (Outbound request) -> Proxy message type request that will be entering PI
    2.) 2nd message (Inbound request) -> Soap request message type going to the webservice
    3.) 3rd message (Inbound response) -> Soap response message type from webservice going to PI
    4.) 4th message (Outbound response) -> contains the message type that has the values that you want
    So the flow could be like this (fault messages not shown)
    Outbound SI (1) -> PI -> Inbound SI (2)     (4) <- PI <-            (3)
    Since you use abap proxy as client you dont need sender agreeement and sender communication channel. You need the receiver soap communication channel and receiver agreement.
    ID objects configuration
    1 Rec Determination,  1 Interface Determination, 1rec comm channel and 1receiver agreement.
    Map proxy request to soap request  first mapping
    Map soap response to proxy respones second mapping
    Operation mapping use outbound interface (proxy) on the source side and inbound interface (soap) on the target side. That's it. You will see both request and response mapping together.

  • Abap webservice Both Client & Server Issue???

    Hi all
         I Want to test SAP ABAP As Client to Call another systerm method~ But Now I am not a outside WSDL,So For Test,
         STEP1:I Use SAP Self to Create a Remote-function Moudle ,then Create Webservice with It.Name.YYSPP3001.Test OK.
         STEP2:Then Se80,Create client proxiex with YYSPP3001 WSDL.Proxy Name:YYSCO_YYSPP3001
         STEP3:Using Lpconfig to Configure This Proxies as a Logic Port  name:YYSCO_YYSPP3001
         STEP4:Test This Client Proxies:YYSCO_YYSPP3001 ,But Return This Message;
        SOAP:14 Unexpected element -el=defins=http://schemas.xmlsoap.org/wsdl/ 
     What is this Error Mean??? My WSDL Is Create By systerm auto with soamanager.
        So Please Help me On This .Thanks~~~

    Hi all
         I Want to test SAP ABAP As Client to Call another systerm method~ But Now I am not a outside WSDL,So For Test,
         STEP1:I Use SAP Self to Create a Remote-function Moudle ,then Create Webservice with It.Name.YYSPP3001.Test OK.
         STEP2:Then Se80,Create client proxiex with YYSPP3001 WSDL.Proxy Name:YYSCO_YYSPP3001
         STEP3:Using Lpconfig to Configure This Proxies as a Logic Port  name:YYSCO_YYSPP3001
         STEP4:Test This Client Proxies:YYSCO_YYSPP3001 ,But Return This Message;
        SOAP:14 Unexpected element -el=defins=http://schemas.xmlsoap.org/wsdl/ 
     What is this Error Mean??? My WSDL Is Create By systerm auto with soamanager.
        So Please Help me On This .Thanks~~~

  • How to consume a ABAP webservice in a  webdynpro app?

    Hi,
    I have a BAPI in ABAP that is exposed as a webservice. I want to use this to build a webdynpro app so that i can consume this webservice. This BAPI returns the Employee data. As soon as the person logs into the portal i am going to pass his login id to this BAPI so that it retrieves the Employee data for that user id. But i need to know the procedure of consuming this webservice in a webdynpro app. Any pointers in this regard will be greatly appreciated.
    Thanks,
    Arun E V

    Hi Arun,
    Consumption of a web service is univesal I guess so it wont matter if it is an ABAP webservice. For consumtion of webservice in Web Dynpro you can go through the following tutorials
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf</a>
    Do reward points if it helps
    Regards
    Sid

  • Consuming ABAP Webservice in Webdynpro app

    Hi,
    I have wrote a webdynpro app for consuming ABAP webservice. I used the procedure in the link below
    http://wiki.sdn.sap.com/wiki/display/WDJava/ConsumingABAPWebServiceinJavaWD
    Everything seemed to be went well, I created model and Webservice destinations. I have written the code for calling the webservice, which does not return data as part of response. I mean though the RFC returns data at the backend,its not showing the returned records in the webdynpro table.
    I have also tried checking the same by setting external break point. when the webservice is executed from my webdynpro app,it goes to the ABAP debugger and i could clearly see the records in the export parameters of RFC,but the same is not returned in the reponse object.
    Could any one let me know what could be missing. Any help is greatly appreciated?
    I have used the following code in Init method of my View
    Request_ZMYRFC input=new Request_ZMYRFC (model);
    wdContext.nodeRequest_ZMYRFC ().bind(input);
    ZMYRFC  req= new ZMYRFC (model);
    req.setPUserid("EDLAS00C");
    req.setPLtc("E");
    input.setMYRFC (req);
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
        try
        wdContext.currentRequest_ZMYRFCElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
          wdContext.nodeZMYRFCResponse().invalidate();
          wdContext.nodeReturn_res().invalidate();
         wdContext.nodeItem_res_ret().invalidate();
          wdContext.nodeILtcg_res().invalidate();
          wdContext.nodeItem_res_ltcg().invalidate();
        catch(Exception e)
          manager.reportException(e.getMessage(), false);
    Thanks
    Santhosh

    santosh,
    Check provider system defination in nwa for webservice.After this mapp the provider system and service group after wd app deployed.This is mandatory while consuming webservice in webdynpro for latest versions of CE7.11 or later.for reference check this article/document. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46
    Thanks,
    Murthy.
    Edited by: Murthy Karaka on Mar 22, 2010 12:59 PM

  • Consuming ABAP Webservice from Android device

    Dear Experts,
    I am ABAP developer (limited knowledge on android) trying to connect  Android device to a.SAP Webservice
    Through trial and error and help from SDN and Android forums i managed to link up the ABAP webservice and android using KSOAP2 API.Its working perfectly now but only when i save the username password for SAP access in the webservice settings in transaction SICF.I need to access the service by passing the username and password values through the SOAP request header but so far my efforts have failed me.im presently using the following code to pass my auth values.
    I would be grateful if you can point me in the proper direction.
           String NAMESPACE = "mynamespace (works properly without auth)";
            String METHOD_NAME = "mymethod (works properly without auth)";
            String SOAP_ACTION = "mynamespace/mymethod (works properly without auth)";
            String URL = "myURL{works properly without auth)";
            SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);
            Request.addProperty("Purchaseorder","4500001168");
            Request.addProperty("Username", "myusername");
            Request.addProperty("Password", "mypassword");
           SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
           envelope.setOutputSoapObject(Request);
           HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
    try
               androidHttpTransport.call(SOAP_ACTION, envelope);
               SoapObject response = (SoapObject)envelope.bodyIn;
               String testValue =  response.getProperty("PoHeader").toString();
               AlertDialog alertDialog = new AlertDialog.Builder(this).create();
               alertDialog.setMessage(testValue);     
               alertDialog.show();
           catch(Exception e)
                e.printStackTrace();
    Thanx & Best Regards

    Hi,
    you can develop a custom Transport class wich extends the: HttpTransportSE class by authentication features.
    example:
    public class AuthTransportSE extends HttpTransportSE{
         private String username;
         private String password;
         public AuthTransportSE(String url, String username, String password) {
              super(url);
              this.username = username;
              this.password = password;          
         protected ServiceConnection getServiceConnection() throws IOException {
              ServiceConnection midpConnection = new ServiceConnectionSE(url);
              addBasicAuthentication(midpConnection);
              return midpConnection;
         protected void addBasicAuthentication(ServiceConnection midpConnection) throws IOException {
            if (username != null && password != null) {
                StringBuffer buf = new StringBuffer(username);
                buf.append(':').append(password);
                byte[] raw = buf.toString().getBytes();
                buf.setLength(0);
                buf.append("Basic ");
                org.kobjects.base64.Base64.encode(raw, 0, raw.length, buf);
                midpConnection.setRequestProperty("Authorization", buf.toString());
    Afterwards you can initialize the Webservice with:
    AuthTransportSE androidHttpTransport = new AuthTransportSE(URL, userName, pasword);
    Cheers,
    Dennis.

  • Sender proxy to sap pi -chinese character

    Hi experts,
    I am having a scenario sender proxy to sap pi. Via the proxy , some chinese character are send into sap pi and during my sxmb_moni the receiver ( inbound message payload) is in BOXES. I tried to debug the proxy and it is sending chinese characters to sap pi but only problem when it arrives to sap PI it becomes into Boxes.
    I have done researc and they have mention to use RFC Unicode. I have configured but it is the same problem into boxes.
    Please help me.  PLZ..

    Hi Mark,
    Thanks a lot for your reply. Basically it is Abap proxy. Do you think it is possible to use UTF-8 or UTF16 in your XML encoding for abap proxy. I am not so good in abap proxy and it is generated by abaper. Pleae advise me if i am wrong..

  • How to use ABAP Webservice to Trigger the start of BPMN

    Hello,
    My scenario is that i define a webservice in the SAP ECC system and import it in the process composer as the service interface. As to the start event, i set the above service interface and operation as the trigger service.
    After then, i call this webservice in the user exit of a T-Code. However, the BPMN is not started by this webservice call.
    Anyone can explain on this and tell me how to use the ABAP webservice as the starting event service interface?
    Thanks in advance
    Erick

    Hi Erick,
    When you develop a process model and use some arbitrary service interface in the message start event then this will be exposed on the Java / BPM system you deploed the process definition on.
    That allows you to start the process via this web service once you know its endpoint.
    So in case you want to start your process from the ABAP side you would need to call this endpoint on the Java side out of your ABAP system.
    Simply calling the web service / code on your ABAP system and hoping that this will also invoke the Java stack won't work I AFAIK.
    Best regards,
    Martin

  • How to save the data to sap abap using Adobe Flex

    Hi Everybody......
    I am new to Adobe flex with sap abap.
          How to save the data in sap abap using Adobe Flex coding is Action Script and using RFC web service.
    Please give me any suggisions on that.
    Thank you
    Venkatesh V

    Hi Venkatesh,
    Try with folowing coding...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
         initialize="initApp()">
         <mx:Label x="10" y="23" text="Airline" width="90" id="lblAirline"/>
         <mx:TextInput x="108" y="21" id="txtAirline"/>
         <mx:Button x="10" y="49" label="Get Data" id="btnGetData" enabled="false" click="getData()"/>
         <mx:DataGrid x="10" y="97" id="dgFlightData" dataProvider="">
         </mx:DataGrid>
           <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.rpc.AbstractOperation;
                   import mx.rpc.events.FaultEvent;
                   import mx.rpc.soap.LoadEvent;
                   import mx.rpc.events.ResultEvent;
                   import mx.rpc.soap.WebService;
                   [Bindable] public var flightData:ArrayCollection;
        private var flightWS:WebService;
         private function initApp():void{
              flightWS = new WebService();
              flightWS.wsdl = "http://uscib20.wdf.sap.corp:50021/sap/bc/soap/wsdl11?services=ZGTEST&sap-client=000";
            flightWS.addEventListener(FaultEvent.FAULT,onWSError);
              flightWS.addEventListener(LoadEvent.LOAD,onWSDLLoaded);
             flightWS.addEventListener(ResultEvent.RESULT,onFlightWSGotResult);
              flightWS.loadWSDL();
    private function getData():void{
              var operation:AbstractOperation = flightWS.getOperation("ZGTEST");
              var input:Object = new Object();
              input.Airline = txtAirline.text.toUpperCase();
              operation.arguments = input;
              operation.send();
         private function onWSError  (event:FaultEvent):void{
         private function onWSDLLoaded(event:LoadEvent):void{
              btnGetData.enabled = true;
         private function onFlightWSGotResult(event:ResultEvent):void{
              flightData = event.result.SFLIGHT;
              ]]>
         </mx:Script>
    </mx:Application>
    Regards,
    Vinoth

Maybe you are looking for

  • Bookmarks saved to a uniquely named bookmarks "folder" using "Bookmark All Tabs" not exporting.

    I used the Bookmark All Tabs feature to save a group of bookmarks into bookmark "folders". I did that by right-clicking on one of the tabs, choosing "Bookmark All Tabs". For "Folder Name" I entered "Watches". The default entry in the "Folder" field w

  • How can I cancel an email..cancel button doesn't work

    I have a blank email open and cannot close it..cancel button doesn't work. How can I get rid of it

  • Is this possible in PPDS?

    Hello Experts, I have a doubt regarding a scenario that we have to implement and I'm not sure if there is any standard functionality in PPDS that will allow us to do the following: u2022     The component A is produced ( make to stock) normally in th

  • HELP!!! sms messages HELP

    Hi  everyone,,, I really need your help i have a blackberry curve 8520 and was moving around the folders then i clicked on the SMS folder and was just about to click on the menu MOVE FOLDER however my finger slipped and i accidentally clicked HIDE fo

  • Mac OS X could not be installed on your computer

    Hello guys and girls, About a year ago I got this problem and never managed to fix it, and bought a new laptop. However my mum wants a laptop and I'm now determined to fix my 2011 Macbook Pro to give to her. Essentially my macbook was running extreme