Consume Webservice using Client Proxy

I wanted to consume the .NET webservice in SAP. I've below question, can anyone clarify me please?
1. Can we use client Proxy to consume the external webservice? I read in some document that this can be used if we are using XI message interface.
2. The webservice requires an user ID & password, how can i pass the authentication details to call the webservice if I use the Client proxy?
Thanks in advance
BM

1. Can we use client Proxy to consume the external webservice? I read in some document that this can be used if we are using XI message interface.
2. The webservice requires an user ID & password, how can i pass the authentication details to call the webservice if I use the Client proxy?
-> 1) You can configure the server to use its own soap runtime. Check out transaction lpconfig.
-> 2) You may user transaction sm59 and configure a rfc connection of type HTTP to extenal server. This allows you to pass
         a user/password permanently.
regards, Stefan

Similar Messages

  • Error in consuming webservices using ABAP

    Dear Gurus,
    I am trying to consume webservices using ABAP. We dont have XI installed and no java instance installed.
    I created a customer proxy through SE80 and generated a proxy class by giving a WSDL link and also defined logical port. Traditionally followed the steps. But while testing webservices , I get a ICF error.
    The error is as follows:
    SOAP : 1:023 SRT : Processing error in internet communication framework ("ICF error when recieving the response  ICM_HTTP_CONNECTION_FAILED)
    Please let me know the cause of this error and solution to be provided.
    I also tried to call the method from an abap program, But I get CX_AI_SYSTEM_FAULT exception.
    Awaiting your replies.
    Thanks in advance for your support and valuable time.
    Thanks
    Gurushanthi

    Hi Gurushanthi,
    It could one of several problems, examples:
    - A firewall setting
    - http communication out disabled by Basis team or
    - The logical port wasn't configured correctly.
    Try the suggestions in this thread to narrow down the reason (particularly the telnet test from the server):
    [Re: Error testing external web service ICM_HTTP_CONNECTION_FAILED;
    Regards, Trevor

  • Consuming webservices using CF8

    I recently upgraded to CF8 and I’m not able to consume webservices from my dev edition on my personal PC.
    I have tried making my own simple test webservice, but I’m not able to consume them using CF. (I’m able to consume the ws using .Net or Java, but not from CF itself).
    I always get the following error:
    org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error: URI=null Line=40: The string "--" is not permitted within comments.
    This is the code I’m using:
    <cfscript>
    wsargs = structnew();
    wsargs.proxyServer = "proxy";
    wsargs.proxyPort = "8080";
    ws = createObject("webservice","http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl",wsargs);
    </cfscript>
    I know that the WSDL is ok since the WS works in .Net and Java. I also know that I can retrieve the wsdl using
    <cfhttp method="get" url="http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl" result="myRes" proxyserver="proxy" proxyport="8080"/>
    So why do I get the “The string "--" is not permitted within comments.” error?
    I know that
    I get the same error for all ws I try to consume from CF, even simple test ws made using CF.
    The ws work, because I can consume them using .Net and Java.
    CFINVOKE gives me the same error
    Thanks,
    Olav, Oslo, Norway

    Have you tried the other methods of connecting to a webservice?
    For instance by tag
    <cfinvoke
                  webservice="http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl"
                  method="post"
                  returnvariable="httpResponse">
                    <cfinvokeargument name="parameters" value="<xmlToSend>"/>
    </cfinvoke>
    Or by building up the CFHTTP call directly
    <cfhttp
                url="http://ws.fraudlabs.com/zipcodeworldUS_webservice.asmx?wsdl"
                method="post"
                result="httpResponse">
                <cfhttpparam
                     type="header"
                     name="accept-encoding"
                    value="no-compression"
                 />
                <cfhttpparam
                type="header"
                name="SOAPAction"
                value="http://ws.fraudlabs.com/zipcodeworldUS_webservice"
                />
                 <!---
                        When posting the SOAP body, use the CFHTTPParam type of
                        XML. This does two things: it posts the XML as a the BODY
                        and sets the mime-type to be XML.
                        NOTE: Be sure to Trim() your XML since XML data cannot be
                        parsed with leading whitespace.
                    --->
                <cfhttpparam
                    type="xml"
                    value="#trim( orderXML )#"
                    />
            </cfhttp>
    I found fiddling around with all three methods of creating a webservice usually results in one that works
    Regards
    Joanne

  • Unable to invoke ADFBC based ws using client proxy

    Hie
    I created a custom am method and exposed it as a webservice and deployed it to my integrated wls.
    Then i generated the client proxy specifying the wsdl running at localhost.
    now when i am trying to call the service method from client proxy i get following exception. Not sure how to resolve..please advise..
    avax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: prefix ns1 is not bound to a namespace
         at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:144)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:125)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)
         at $Proxy43.storePost(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)
         at $Proxy44.storePost(Unknown Source)
         at oracle.apps.crm.smm.view.service.proxy.SmmAMServiceSoapHttpPortClient.main(SmmAMServiceSoapHttpPortClient.java:42)
    Caused by: java.lang.IllegalArgumentException: prefix ns1 is not bound to a namespace
         at com.sun.xml.bind.DatatypeConverterImpl._parseQName(DatatypeConverterImpl.java:388)
         at com.sun.xml.bind.v2.runtime.unmarshaller.XsiTypeLoader.parseXsiType(XsiTypeLoader.java:92)
         at com.sun.xml.bind.v2.runtime.unmarshaller.XsiTypeLoader.startElement(XsiTypeLoader.java:70)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:481)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:459)
         at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:71)
         at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:148)

    Hi Bora,
    I guess that you are having a username/password for directory manager on OUD proxy (let's say cn=proxymgr / proxypwd), and another username/password for directory manager your ODSEE servers (let's say cn=odseemgr / odseepwd).
    When you connect to OUD proxy using cn=proxymgr to perform a search on your backend, OUD proxy creates a connection to the ODSEE backend with the same credentials (because the proxy is configured in use-client-identity mode), i.e. cn=proxymgr / proxypwd. If this user does not exist on ODSEE (or has the same name with a different password), you get an error 49.
    To avoid this issue, OUD proxy offers configuration parameters in the proxy-workflow-element: the exclude-list and remote-ldap-server-bind-dn / remote-ldap-server-bind-password. You have to add cn=proxymgr to the exclude-list, and set remote-ldap-server-bind-dn to cn=odseemgr, remote-ldap-server-bind-password to odseepwd.
    This way, when connecting with cn=proxymgr, the proxy will know that he should not use the client credentials, but rather cn=odseemgr when discussing with ODSEE backend.
    This concept is explained in OUD admin guide, Configuring the Bind Mode.
    HTH,
    Flo.

  • Extended_xml_handling using client proxy

    Hi,
    I´m using an client proxy in WAS 6.20 to call XI 3.0. I need to control one of the fields using the "extended_xml_handling" parameter. But how do i set the FIELD field in the control tab?
    I use this code but i´m unsure how to field the ls_ctrl-field. Do anyone have an example?
      DATA: request  TYPE zskssend1.
      DATA: response TYPE zsksmt_string.
      DATA: ls_ctrl  TYPE prxctrl.
      ls_ctrl-field = 'ZSKSSEND1-SEND-TEMPORARYID'.
      ls_ctrl-value = sai_ctrl_nil.
      APPEND ls_ctrl TO request-controller.
      TRY.
          wk_ref_prox->extended_xml_handling = 'X'.
          CALL METHOD wk_ref_prox->execute_synchronous
            EXPORTING
              controller = l_controller
              output     = request
            IMPORTING
              input      = response.

    I hope you have read this document.
    http://help.sap.com/saphelp_nw04/helpdata/en/73/3f5c3c3906b006e10000000a11402f/content.htm
    You could also implement a workaround. Just pass some special character set e.g. $$## to all the blank fields in proxy response. You may then receive the data in XI and put some condition there to remove it.
    Regards,
    Prateek

  • Consume webservice using HTTP adapter

    Hi PI Experts,
    Can we consume a webservice using a HTTP adapter?
    If yes can anyone share some knowledge, how to do so?
    Thanks & REgards,
    Krishna

    Hi Krishna,
    I think this can be done using FLEX.(not sure).
    Ref:  http://wiki.sdn.sap.com/wiki/display/EmTech/ConsumingABAPWebServicesusing+Flex
    Thanks,

  • Consume webservice using  option  UDDI or url

    hi
    can any one help me how to consume webservice
    through   option  UDDI or url 
    is there is any configuration need to be made
    to register UDDI as iam consuming webservice  from RFC
    can any one help me out ?

    Hi Kishore,
    Following links would guide you:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2188ae5-0601-0010-dd93-c23e381ef41e
    Re: WebService Tutorials
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/733b956d596fcee10000000a1553f6/frameset.htm
    Regards,
    Anagha

  • Invoking Webservice using ABAP Proxy

    Hi,
        I have a synchronous scenario with ABAP proxy invoking the external webservice.In the SOAP receiver target URL confiuration,do I need to give the operation(method)name in the webservice? I have read in the forum that we need to give the target URL with .asmx extension.What is the meaning of .asmx extension?
    Thanks,
    Leo

    Hi Teresa,
    We meet again !!
    Right, we have a simple solution for this without using BPM.
    In the proxy, set a field on the outbound data structure from the proxy to indicate to XI which receiver determination in XI can use to send the message to the right interface.
    We have exactly the scenario you are talking about and it works like a treat.
    Send me an e-mail @ [email protected] and I will send you a screenshot of how simple this is without using BPM.
    Cheers
    Colin.

  • Soapfaultcode:1 Error when consuming webservice through abap proxy class

    Hi All,
    I am facing a issue executing a proxy class created by consuming web service.
    I have consumed a web service which queries data from oracle server to process them in SAP.We have created a Proxy class and did the following configurations:
    1) Created a logical port using SOAMANAGER
    2) In SICF t-code we have selected No proxy setting for local server.
    But when we execute the proxy class it gives an error as "SoapFaultCode:1'.
    Regards,
    Madhu.

    Hi Madhu,
    Please tel us how u have solved it. I am also facing this problem.
    I am trying to understand this problem description 'SOAP ACTION name by definition of the logical port.' via the thread Re: Get error "SoapFaultCode:1"Consume web service in ABAP proxy - But couldn't able to understand how to do this.
    Thank You,
    Regards,
    Naresh.

  • Consuming  WebServices using  WebDynPro

    Hi 
    Need help in finding some good material/hands on  for usage and consuming custom/External web services in  some sample code/project in Web DynPro
    kindly suggest some tutorials including hands on the  same
    thanks

    Hi Saurabh,
    Go through these links .They  are sample tutorials for the same
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing an email web service - 6_0_.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing the car rental web service - 7.htm
    Go through this link also
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm
    This will give you a basic idea of webservice import
    Hope this helps you
    Regards
    Rohit

  • Consuming peoplesoft webservices using JSF application gives error

    Hi,
    I am using Jdeveloper 11g to consume a peoplesoft webservice which does the basic datbase operations.
    I have been successful in creating a proxy using the wsdl file and using JAX-WS approach to achieve the same.
    I can connect to the webservice using the proxy client.
    But when i package the proxy( create a jar) and import in my web application (JSF application), i am running into following error.
    <ActionListenerImpl><processAction> com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
    javax.faces.el.EvaluationException: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at javax.faces.component.UICommand.broadcast(UICommand.java:387)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: com.sun.xml.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected: {http://peoplesoft.com/KCM_WEB_CASE_CI}Get__CompIntfc__KCM_WEB_CASE_CIResponse but found: {http://schemas.xmlsoap.org/ws/2002/xx/secext}Get__CompIntfc__KCM_WEB_CASE_CIResponse
         at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:214)
         at com.sun.xml.ws.streaming.XMLStreamReaderUtil.verifyTag(XMLStreamReaderUtil.java:222)
         at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:531)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:127)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
         at $Proxy135.getCompIntfcKCMWEBCASECI(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.wsee.jaxws.spi.ClientInstance$ClientInstanceInvocationHandler.invoke(ClientInstance.java:363)
         at $Proxy136.getCompIntfcKCMWEBCASECI(Unknown Source)
         at project1.proxy.KCM_WEB_CASE_CISoapClient.getKCMMethod_final(KCM_WEB_CASE_CISoapClient.java:618)
         at login.view.Handler.CRMSearchHandler.getSearchResults(CRMSearchHandler.java:18)
         at login.view.backing.Login.search(Login.java:54)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
    I am not sure what else i need to import or rather how to package the proxy classes to get it working.
    Any help will be highly appreciated.
    I even tried creating a webservice proxy in the JSF project instead of importing the jar, yet i am getting the same error, but the irony is that when i run just the proxy class(standalone with main method) i can get access to the webservice.
    Thanks
    Ash
    Edited by: [email protected] on Jun 8, 2010 2:38 PM

    Well,
    There is a issue with analyzer capturing SOAP traffic when using with secure proxies, so that is why you are not seeing any data there.
    And I think if you will try your jax-rpc code again, it might work as there was nothing incorrect in your code, so might be that the whole config was corrupt which was throwing out incorrect error(s).
    About a web service with credentials, you can quickly create one.
    Have a java class like the following:
    import javax.jws.WebService;
    import weblogic.jws.Policy;
    @WebService
    @Policy(uri = "policy:Wssp1.2-2007-Https-UsernameToken-Plain.xml")
    public class Class1 {
    public Class1() {
    super();
    public String sayHello() {
    return "Hi";
    The procy code for this will be something like:
    private static Class1Service class1Service;
    public static void main(String[] args) {
    try {
    class1Service = new Class1Service();
    Class1 class1 = class1Service.getClass1Port();
    Map<String, Object> requestContext = ((BindingProvider) class1).getRequestContext();
    setPortCredentialProviderList(requestContext);
    // Add your code to call the desired methods.
    System.out.println(class1.sayHello());
    } catch (Exception ex) {
    ex.printStackTrace();
    public static void setPortCredentialProviderList(Map<String, Object> requestContext) throws Exception {
    // TODO - Provide the required values
    String username = "weblogic";
    String password = "weblogic1";
    List<CredentialProvider> credList = new ArrayList<CredentialProvider>();
    // Add the necessary credential providers to the list
    credList.add(getUNTCredentialProvider(username, password));
    //credList.add(getBSTCredentialProvider(clientKeyStore, clientKeyStorePassword, clientKeyAlias, clientKeyPassword, serverKeyStore, serverKeyStorePassword, serverKeyAlias, requestContext));
    //credList.add(getSAMLTrustCredentialProvider());
    requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credList);
    Thanks,
    Vishal

  • Error in receiver determination - Client proxy to IDOC using PI-IS

    Hi,
      I am using client proxy to send the order acknowledgement from SCM to R/3 , I am getting below error
    <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    I am using the standard SAP message interface in the sproxy.
    Also I am getting error in Proxy generation "Logical port template not determined" "LPT could not be created without DT".
    Thanks,
    Menaga

    <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
    The above error occurs due to:
    1) You have configured a wrong receiver service in the Receiver Determination
    2) You have configured the correct receiver but the cache is not updated
    So check if the receiver service exists and the cache is updated.
    Also I am getting error in Proxy generation "Logical port template not determined" "LPT could not
    be created without DT".
    Check if you get any lead from this thread:
    Failed to time to generate proxy - TRX SPROXY
    Does it mean that you have no proxy generated and you are testing??....if yes then you will get the above error (NO_RECEIVER_CASE_ASYNC).
    Regards,
    Abhishek.

  • Error in Synchronous client proxy

    Hi Gurus,
    I have created a scenario in which I am using client proxy at source side (ECC ) and soap at target side.
    Its a synchronous scenario for which I have written an abap report.This interface sends a company name and uses a webservice to fetch the stock value of that company.
    I am a beginner in abap, so I am unable to to know the reason why is it showing the following error when I am executing the code.
    Method "EXECUTE_SYNCHRONOUS" is unknown or PROTECTED or PRIVATE.
    This error is coming at line :
    CALL METHOD Proxy->execute_synchronous
    Following is the code :
    REPORT  ZSYNC_PROXY_STOCKQUOTE NO STANDARD PAGE HEADING.
    DATA Proxy TYPE REF TO ZCO_SI_SOURCE.
    CREATE OBJECT Proxy.
    DATA: t_company_name TYPE zsource_request_mt,
           t_stock_value TYPE zsource_response_mt.
    SELECTION-SCREEN: BEGIN OF BLOCK B1.
    PARAMETER: p_id TYPE String.
    SELECTION-SCREEN: END OF BLOCK B1.
      START-of-selection.
      TRY.
        t_company_name-Source_Request_MT-Company_name = p_id.
        CALL METHOD Proxy->execute_synchronous
        Exporting
          output = t_company_name
       IMPORTING
         input = t_stock_value.
       WRITE: t_stock_value-Source_Response_MT-stock_value.
       CATCH cx_ai_system_fault.
         DATA fault TYPE REF TO cx_ai_system_fault.
         CREATE OBJECT FAULT.
        WRITE:/ fault->errortext.
        ENDTRY.
        END-OF-SELECTION.

    Hi,
    You have wrongly assigned the method. It should not be pointing to Execute method.
    it should be something like below
    TRY.
               CREATE OBJECT proxy.
               CATCH cx_ai_system_fault.
      ENDTRY.
    TRY.
        CALL METHOD Proxy->  " GIVE THE OUTBOUND SERVICE INTERFACE NAME HERE"
        Exporting
          output = t_company_name
       IMPORTING
         input = t_stock_value.

  • Problem in Client Proxy

    Hi All,
    By using client proxy i am moving material master data into a file, i have finished IR part and activated it after that i went to R/3 side and generated the proxy and activated it . after that i have written a program in abap editor to fetch data for matnr,mart,mbrsh and meins and passed to exporting parameter output in method asynchroneous_execute method. and in XI side i have created receiver determination, interface determination and receiver agreement and activated. And finally i have excetued my program in R/3 . i didn't get the file into my destination and i didn't find any message in sxmb_moni. can any body suggest me where can i look at the status of message and list some possible errors.
    Thanks in advance .
    Regards,
    Prem.S

    Hi All,
    When i execute sxmb_moni in R/3 system , i am getting the below mentioned error. Kindly porive me some solutions for this.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Integration Server
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
      <SAP:P1>404</SAP:P1>
      <SAP:P2>Not Found</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Error Report</title> <style> td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active </style> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  404 &nbsp Not Found</b></font></td> </tr> <tr bgcolor="#3F73A3"> <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td> <td height="23"><img width=1 height=1 border=0 alt=""></td> <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td> </tr> <tr bgcolor="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td> </tr> </table> <br><br><br><br><br><br> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  The requested resource does not exist.</b></font></td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  Details:</b></font></td> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>  Go to <A HREF="/" target="_parent">main page</A> of this application!</pre></font></td> </tr> </body> </html></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP response contains status code 404 with the description Not Found Error when sending by HTTP (error code: 404, error text: Not Found)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    List some possibilities for getting this error.
    Regards,
    Prem.S

  • How to call webservice using standalone application

    Hi,
    Actually i am trying to connect with one free webservice using client. but i am uanble to get the result and it is throwing the Exception.Exception is Execution failed. Exception: java.net.ConnectException: Connection timed out: connection reset
    i am using the following code.
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.utils.Options;
    import javax.xml.namespace.QName;
    import java.io.*;
    public class AddFunctionClient {
    public static void main(String [] args) {
    try {
         String endpoint = "http://www.startvbdotnet.com/web/sample2.asmx?wsdl";
         System.setProperty("http.proxyHost", proxyHost);
              System.setProperty("http.proxyPort", portNumber);
         Service service = new Service();
         Call call = (Call) service.createCall();
         call.setTargetEndpointAddress( new java.net.URL(endpoint) );
         call.setOperationName(new QName(endpoint, "add"));
              System.out.println("connected");
              System.out.println("value is"+call.invoke(new Object[]{new Integer(10),new Integer(20)}));
         } catch (Exception e) {
         System.err.println("Execution failed. Exception: " + e);
    can any one help on this

    Hi,
    If your  JAVA Application is Web based application, you can expose it as Webservice.
    JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.
    So we can Use SOAP Adapter or HTTP in XI..
    If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly
    If you are dealing with the Webservice and SAP Applications means check this
    Walkthrough - SOAP  XI  RFC/BAPI
    REgards
    Seshagiri

Maybe you are looking for

  • Can't log in after upgrading to mavericks

    After upgrading to Mavericks, I at first seemed to lose the 2nd HD (all data), then list the ability to log in Help!

  • External monitor issues with new OS

    Since switching to the new OS Lion I can't get my external monitor to work through my Toshiba docking station.  It used to work??

  • Message Error in classification (class REL_PREQ_ITEM class type 032

    Hi gurus, Can anybody plz explain me to solve the following message. This comes when i hit the classification button in the release strategies step in the release procedure Error in classification (class REL_PREQ_ITEM class type 032 Thanks Anusha

  • SAX parsing problem

    Thanks for reading this msg! I am using SAX parsing XML , everthing is looks OK but only one I don't get it, one element out put is being splited but all other no problem even same data... XML element : <item> RO(contains 160 FT)</item> after parsing

  • Error on getting apps on iTunes

    has anyone had this error while downloading or buying an app on app store?? error code: 1009