Consume WSDL in ABAP proxy : Issue with name space

Hi,
I was trying to consume a WSDL in ABAP and I have created ABAP proxy using wizard in SE80 and also did the LPCONFIG.
While calling the proxy methods it is throughing the "authrization failed" error because of the following issue.I have successfully executed same WSDL from some third party tools with out error.only difference I have observed in SOAP request is, Third party tools passing all name spaces at envelope level but in ABAP proxy it is not passing all name spaces at envelope level.
1. SOAP genarated from WSDL in  third party tool.
<<b>soap:Envelope</b> 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" xmlns:tns="<b>http://schemas.xxxxx.com</b> ">
  <soap:Body>
    <tns:<b>GetKMContent</b>>
      <tns:request>
        <tns:clientID>1</tns:clientID>
        <tns:employeeID>307478</tns:employeeID>   
        <tns:languageCountryCode>en-US</tns:languageCountryCode>
        <tns:wscVariables>
          <tns:empcountry>US</tns:empcountry>         
        </tns:wscVariables>
      </tns:request>
    </tns:GetKMContent>
  </soap:Body>
</soap:Envelope>
SOAP genarated from WSDL in  ABAP proxy.
<<b>soap-env:Envelope</b> xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<n0:Trace xmlns:n0="http://www.sap.com/webas/630/soap/features/runtime/tracing/">
<TraceLevel xmlns="http://www.sap.com/webas/630/soap/features/runtime/tracing/">Full</TraceLevel>
</n0:Trace></soap-env:Header>
<soap-env:Body>
    <nr1:<b>GetKMContent</b> xmlns:nr1="<b>http://schemas.xxxxx.com</b> ">
         <nr1:request>
           <nr1:clientID>1</nr1:clientID>
           <nr1:employeeID>307478</nr1:employeeID>
           <nr1:languageCountryCode>en-US</nr1:languageCountryCode>
           <nr1:wscVariables>
           <nr1:empcountry>US</nr1:empcountry>
           </nr1:wscVariables>
        </nr1:request>
     </nr1:GetKMContent>
  </soap-env:Body>
</soap-env:Envelope>
I was trying to use the SOAP genarated in ABAP proxy in thrid party tool and end up with same "authrization failed " error. If I move the name space  <b>nr1</b> from <<u>nr1:GetKMContent xmlns:nr1="http://schemas.xxxxx.com "></u>  <b>GetKMContent</b> node to <b>soap-env:Envelope</b> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nr1="http://schemas.xxxxx.com "> then it is working fine.
Question :Is there any way in ABAP proxy to pass name space at soap-env:Envelope level or is there any way to change the SOAP request once it is genarated from ABAP Proxy?. Is there any API to change SOAP information?
Thanks,

Hi Kavitha,
I am also facing the same issue.
Could you please share the solution if you have solved this.
Thanks,
Arun

Similar Messages

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

  • Weblogic server proxy issues with twitter4j api

    I am using weblogic 10.3.4 using twitter4j Api running behind the proxy. I am not sure why I am getting this error. I do have the proxy name,port number, userid and password set in the twiiter4j api. The same code works fine for me in tomcat behind proxy. When I was trying to migrate from tomcat to weblogic i am getting following error. Any help is really appreciated. I am not sure its the issue with weblogic
    Thanks for the help
    Vinoj
    <Failed to communicate with proxy: tmsproxy.tms.toyota.com/80. Will try c
    onnection stream.twitter.com/443 now.
    weblogic.net.http.HttpUnauthorizedException: Proxy or Server Authentication Required
    at weblogic.net.http.HttpURLConnection.getAuthInfo(HttpURLConnection.java:297)
    at weblogic.net.http.HttpsClient.makeConnectionUsingProxy(HttpsClient.java:440)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:351)
    at weblogic.net.http.HttpsClient.New(HttpsClient.java:527)
    at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:239)
    Truncated. see log file for complete stacktrace
    Dumping beanImpl -> ejbName map
    weblogic.management.j2ee.mejb.MejbBean: Mejb
    connect timed out
    Relevant discussions can be found on the Internet at:
    http://www.google.co.jp/search?q=944a924a or
    http://www.google.co.jp/search?q=24fd66dc
    TwitterException{exceptionCode=[944a924a-24fd66dc 944a924a-24fd66b2], statusCode=-1, message=null, code=-1, retryAfter=-1, rateLim
    itStatus=null, version=3.0.4-SNAPSHOT(build: f34757f6d8512eca8028601d9de303e0173d8d42)}
    at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:177)
    at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61)
    at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:98)
    at twitter4j.TwitterStreamImpl.getFilterStream(TwitterStreamImpl.java:304)
    at twitter4j.TwitterStreamImpl$7.getStream(TwitterStreamImpl.java:292)
    at twitter4j.TwitterStreamImpl$TwitterStreamConsumer.run(TwitterStreamImpl.java:462)
    Caused by: java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at weblogic.net.http.HttpsClient.openWrappedSSLSocket(HttpsClient.java:565)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:287)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:364)
    at weblogic.net.http.HttpsClient.New(HttpsClient.java:527)
    at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:239)
    at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:255)
    at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java

    Hi,
    Has anybody got the solution like 64-bit libroxy or its source code to compile as 64-bit? I'm facing the same problem.

  • File to ABAP Proxy (problem with inbound queues in R3)

    Hi,
    In File-XI-ABAP proxy scenario, XI is successfully picking up file and sending it to R3.
    But in R3, an inbound queue is created in SMQ2 transaction code and I solved the same to automatically process the Queue by registering that in SMQR transaction code. But even though the inbound queue doesn't appear in SMQ2 (which means that it is processed successfully) it doesn't call the method EXECUTE_ASYNCHRONOUS. Can anyone help me whether I need to do any settings to run that method?
    Also can anyone help me, after the inbound queue is successfully processed in SMQ2 transaction, what would be the next step to watch what exactly that queue has done?

    Hi,
    Please check the program code for Server ABAP proxy.
    This will show you the trigerring of Proxy on inbound side.
    ABAP Proxy inbound program - sales order creation - Community Profiles - Wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    For Queues, you can go to SMQR and check for the register queue. Select and double click on it. If anything is stuck up then you can see in it. Even same with SMQ2
    Thanks
    swarup

  • HTTP to ABAP Proxy - Problem with "Current User" parameter

    Hi experts,
    We have a HTTP to ABAP proxy sceario, where I used an HTTP Destination to connect to the proxy.
    We're trying to use the option "Current User" in that destination in order to login to ECC with the same user that in PI adapter plain.
    The user exists i both systems, PI and ECC, with the same password.
    Checking that parameter we get the following error:
    <SAP:Error><SAP:Category>XIServer</SAP:Category><SAP:Code>INTERNAL.UNAUTHORIZED</SAP:Code><SAP:P1>401 </SAP:P1><SAP:P2>Unauthorized</SAP:P2><SAP:P3>(See attachment HTMLError for details)</SAP:P3></SAP:Error>
    We think that PI is not getting the password.
    Does aybody know how to do this?
    Thanks and regards,
    LUIS B.

    Hi Chirumamilla,
    If we put user and password in SM59 (unchecking "Current User") the commuication works without problems.
    We don't want to leave a user set there, beacuse we are looking to access to PI with different users and login to ECC with the same user.
    Thanks,

  • Abap Proxy Issues

    Hi there, Iu2019ve been struggling with abap proxies the last couple of daysu2026 I want to create a program that executes the proxy and send thru some data via an internal table. (To another proxy on the same system but a different client.) Iu2019ve checked out the client/server proxy blog but it only shows some of the configuration. Is there may-be a complete step by step? How do I check if the RFC destinations are setup correctly? I have created scenarios for this but every time I check it in the sxmb_moni it shows a green flag and cannot find a receiver service..
    Thanx,
    Jan

    have u refer the below links.
    ABAP Proxy configuration:
    How do you activate ABAP Proxies?
    Client Proxy -
    ABAP Proxies in XI(Client Proxy)
    Server Proxy -
    ABAP Server Proxies
    File to Inbound Proxy:
    File to R/3 via ABAP Proxy
    Debugging Inbound Proxy:
    XI: Debug your inbound ABAP Proxy implementation
    chirag

  • Windows Intergrated Authentication with reverse proxy issue with Safari

    Hi All
    I having a application which has Windows Integrated Authentication, for Internet users we are having a reverse proxy which has a IIS server which will authenticate using basic authentication then redirected to the actual application, every thing works as expected in IE and firefox but in safari there is a second login dialog box appears. When I did a packet capture using wireshark I noticed that in IE and FF the basic authentication which is carried forward to the actual application from IIS server but in Safari there is a NTLM negotiation in between because there is a 401 response so my application asks for on more login dialog. Dose any one knows why safari is behaving like this?
    Thanks & Regards
    Karthikeyan Vaithilingam

    I found a related post https://discussions.apple.com/thread/3274071?start=0&tstart=0. There is an issue with basic authentication and Http Redirect.

  • Http to Abap Proxy communication with multiple queues generation in Recevr

    Dear SDNs,
    I need some help in the following scenario, appreciate your suggestions and help .
    I am receiving the messages from sender to PI on http posting, from PI  I am sending the message to SAP system using receiver xi communication channel ( receiver is abap proxy).
    Sender will send the messages in QOS=EOIO, QUEueID=XXXt_100 etc  parameters, when large volumes cases, it is getting delayed to process it using a single queue.
    We are thinking to dynamically  generate multiple queues in PI and send the same queue ids to receiver SAP system to process all the messages quickly in SAP System also.
    Help /Clarifications needed:
    1. XI receiver communication channel in  pi  does not provide any options to generate dynamic queue id based on payload content (using dynamic configuration) and sent it to SAP.
    2. Module Tab in receiver communication channel also got disabled to add  custom adapter modules, can we add custome adapter module on xi receiver channel to generate dynamic queue id ?
    Really appreciate your immediate help and suggestions.
    Thanks.
    Suraj.

    Dear Praveen,
    Thanks lot for the immediate reply, we need to use EOIO, as the messages need to be processed in the same order we send and receive, there is no flexibility in QOS=EOIO, Appreciate if there is any other thoughts?
    Thanks In Advance.
    Suraj.

  • XI 3.0 SP14 Synchronous SOAP- XI- ABAP Proxy - fails with "System Error"

    Hi All,
    The synchronous response message fails at the stage "Receiver Identification".
    It seems that the synchronous response XML has no "sender" attribute, so obviously the receiver determination fails.
    In the message monitor I can see the correct payload coming from the ABAP proxy, so that part looks OK.
    I have the same scenario working perfectly on another system landscape, so there might be a configuration side to it.
    Thanks is advance,
    Ofer
    Message was edited by: Ofer Even-Tsur

    Hi,
    for the error information SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_BE</SAP:Code>
    looks like xi is not able to find a reciever of best case. Open up the scenario in COnfiguration, open up the modify(add spaces) and activate reciever determination / reciever communication channel.
    cheers,
    naveen

  • Mail Sender to Abap Proxy Receiver with Attachements

    Hi All,
    Scenario: I need to create a ticket in Solman from a mail. I intend to do the scenario as Mail sender to Abap Proxy receiver asynchronous.
    I have configured my sender mail adapter and am able to get the mails in XI. The attachements also appear in Inbound payload as MailAttachement-1, MailAttachement-2 etc. I have checked use mail packege and keep attachements in sender adapter.
    Transport Protocol: IMAP4
    Message Protocol: XIPAYLOAD
    Queries:
    1. My Inbound Data Type is the mail Package -- ximail30_xsd. Here in sxmb_moni I can see the mail attributes like from, to and the mail body in content. But How can I read the attachements in my message mapping.
    2. How can I pass these attachements to Abap Proxy ( I do not need to alter attachments only pass to proxy ). These attachements have to be attached to the Solman ticket in SOLMAN server.
    Appreciate your kind response to my above queries.
    Thanks.
    Regards,
    Siddhesh S.Tawate
    PS: I have tried using PayloadSwapBean in adapter module but still the content at source remains same.

    Hi,
    Please find below the part of code that might help you. I have given code only responsible for attachements part of the ticket.
    loop at lt_attach into l_attachment.
            count = count + 1.
            if count = 1.
              first_line = 1.
            endif.
            l_type = l_attachment->GET_CONTENT_TYPE( ).
            split l_type at '"' into l_type
                                     file_name
                                     l_name.
            l_name = file_name.
            split file_name at '.' into file_name
                                        file_type.
            l_xstring = l_attachment->GET_BINARY_DATA( ).
            strlen = xstrlen( l_xstring ).
            Compute int = ( strlen div 255 ).
            Compute rem = ( strlen mod 255 ).
            if rem <> 0.
              int = int + 1.
            endif.
            count1 = int.
            if count = 1.
              last_line = count1.
            else.
              if int = 1.
                first_line = last_line.
              else.
                last_line = first_line + count1.
              endif.
            endif.
            wa_APPX_HEADERS-APPXNO = count.
            wa_APPX_HEADERS-DESCR = l_name.
            wa_APPX_HEADERS-FILETYP = file_type.
            wa_APPX_HEADERS-FILENAM = l_name.
            wa_APPX_HEADERS-FILEFM_UL = 'BIN'.
            wa_APPX_HEADERS-FIRSTL = first_line.
            wa_APPX_HEADERS-LASTL = last_line.
            wa_APPX_HEADERS-FILELEN = strlen.
            wa_APPX_HEADERS-LAST_USR = sy-uname.
            GET TIME STAMP FIELD wa_appx_headers-TIMESTAMP.
            append wa_APPX_HEADERS to it_APPX_HEADERS.
            while count1 <> 0.
              count1 = count1 - 1.
              if count1 <> 0.
                wa_APPX_LINES_bin-LINE = l_xstring+0(255).
                shift l_xstring left by 255 places in BYTE MODE.
              ELSE.
                wa_APPX_LINES_bin-LINE = l_xstring.
              endif.
              append wa_APPX_LINES_bin to it_APPX_LINES_bin.
              clear: wa_APPX_LINES_bin, wa_APPX_LINES.
            endwhile.
            first_line = last_line + 1.
            clear: strlen, count1, file_name, file_type, l_type, int, rem, l_xstring, l_attachment.
          endloop.
    CALL FUNCTION 'BAPI_NOTIFICATION_CREATE'
            EXPORTING
              NOTIF_EXT                = wa_NOTIF_EXT
            NOTIF_CRM                = wa_NOTIF_CRM
      IBASE_DATA               =
         IMPORTING
           NUMBER                   = Refnum
           NUMB                     = Numb
           REFNUM                   = Ticket_No
           SYSID                    = SYSID
            TABLES
              NOTIF_PARTNERS           = it_NOTIF_PARTNERS
            NOTIF_NOTES              = it_NOTIF_N_EXT
              NOTIF_SAP_DATA           = it_NOTIF_SAP_DATA
            NOTIF_TEXT_HEADERS       = it_NOTIF_TEXT_HEADERS
            NOTIF_TEXT_LINES         = it_NOTIF_TEXT_LINES
            APPX_HEADERS             = it_APPX_HEADERS
            APPX_LINES               = it_APPX_LINES
            APPX_LINES_BIN           = it_APPX_LINES_BIN
             RETURN                   = RETURN
    Please observe how first and last line of attachement is calculated. That is what created problem for me initially.
    Hope this helps.
    Regards,
    Siddhesh S.Tawate

  • Accssing xml tags with name space

    <XML>
    <A> Text line 1 </A>
    <A> Text line 2 </A>
    <A> Text line 2 </A>
    </XML>
    I need to know how to Create and access the tag values using name space. could you send me the code please ?
    Thanks

    Hi:
    If you want to use namespace in XML file. You have to define a DTD file or Schema file. Those file you created to validate the XML file. So you can also define a namespace in DTD and Schema or not.
    When you define a namespace in DTD or Schema, you can use a prefix in front of tag name.

  • 10.1.3.3 JDev web service client proxy: Issue with XSD:anySimpleType

    Hi,
    One of our Web services XSD elementss has "anySimpleType" as the type:
    <xsd:element name="Value" type="xsd:anySimpleType" minOccurs="0" nillable="true"/>
    The client proxy is generated using JDev 10.1.3.3. We observed that the corresponding Java object is created with "String" data type:
    protected java.lang.String value;
    exp.setValue("100");
    We need to be able to pass arguments with other simple types as well (E.g. Decimal). We tried changing the auto generated code, but weren't successful.
    Any pointers in this regard are much appreciated.
    Thanks,
    Phani

    Hi all,
    can anyone please respond to my issue. Its sort of urgent.
    thanks,

  • External Web Services as simple ABAP Proxy issue

    Hi,
    I'm a bit confused upon the subject. I'm testing a scenario where I want to call directly an external webservice from ABAP ( No XI in between for the moment : I'm using a client on the XI box that is set as 'Application system' . This is the only 6.4 client that has outbound HTTP access to the domains required )
    I have for 2 test web services a WDSL file . Via SE80, I've created ABAP proxies for them :
    For 1 of both ( requiring no authentication on the server side ),  this works ok ( and doesn't require any further related setup such as SLD etc...). This seems completely transparant for the Xi box : No messages in SXMB_MONI , as I was expecting
    For the other one ( requiring authentication on the server side but I don't know if related ), I'm getting a logon box to log on to integration server + subsequently 'Receiver could not be determined' error.
    I also have messages in the monitor.
    What could trigger this, unwanted,  XI flow ? How can it be different for the 2 webservices.
    I do have a 'half-working' integration scenario pending for the second service, with XI in between as this is my final goal , but I don't see how I can influence it :
    It uses other interfaces names etc..Only the target webservice URL also occurs somewhere on a communication channel  from this scenario,
    Any ideas ?

    OK, I found it : I forgot to create a logical port for the second webserivce !

  • Proxy issue with SCM - Error code: 400  ICM_HTTP_CONNECTION_FAILED

    We have recently added an SCM system to our landscape.  I am trying to upload data to BI within SCM.  I have set up the method and tested it and it works fine.  I am pulling the data in to XI from a flat file and converting it to XML, which works fine, I have tested the payload in the message mapping test tab.  When it trys to connect to the SCM system it looks like it hangs forever in sxmb_moni with the error message.
    Error when receiving by HTTP (error code: 400,
    error text: ICM_HTTP_CONNECTION_FAILED)
    I have also created my proxy in SCM, that seems to be fine as well when I test it.
    The communication channels are as follows...
    Transport Protocol: HTTP 1.0
    Message Protocol: XI 3.0
    Adapter Engine:     Integration Server
    Addressing Type:   URL Address
    Target Host:           <hostname>
    Service NUmber:     8000
    Path:                     /sap/xi/engine?type=receiver
    Auth Type:            Use Logon Data for SAP System
    SECOND
    I cannot see any errors on the Runtime either because my communiation is not showing up...  I have saved it and activiated it.  The adapter type is XI.
    Any help would be appreciated.
    Skip Ford

    Hi
    Error when receiving by HTTP (error code: 400,
    error text: ICM_HTTP_CONNECTION_FAILED)
    I have also created my proxy in SCM, that seems to be fine as well when I test it.
    The communication channels are as follows...
    Transport Protocol: HTTP 1.0
    Message Protocol: XI 3.0
    Adapter Engine: Integration Server
    Addressing Type: URL Address
    Target Host: <hostname>
    Service NUmber: 8000
    Path: /sap/xi/engine?type=receiver
    Auth Type: Use Logon Data for SAP System
    I think the parameter Path for the server proxy should be
    /sap/xi/engine?type=entry
    Thanks
    Gaurav

  • ABAP Proxy issue on R3 side

    Hi all,
    I have an issue on QA server. I send an interface from PI to R3 via RFC, then the RFC execute some idoc proccess and at the end it sends a message back to PI via proxy. The issue is that i see the RFC executed succesfully on R3 (Idocs processed) but i cannot see the proxy message on transacction SXI_MONITOR on R3 side, so no proxy message is sent to PI. I already check the configuration for proxy but it seems it is ok. Obviously the issue is not on PI side.
    Do you have any idea why R3 doesn't generate the proxy message?

    The scenario is assycronous, because the proxy is executed by the RFC.
    This scenario is working perfectly on DEV and Production environment. Basis team made a copy of R3 production  on QA, so there is a missing configuration on R3 side, I check the SPROXY transaction and I get an error when i execute the proxy in test mode.
    Error on Sproxy:
    GET_BUSINESS_SYSTEM_ERROR  An error occurred when determining the bussines system (NO_BUSINESS_SYSTEM)
    But, when i check the SLD i see the bussiness sistem for PI and R3 correctly.
    Any idea?

Maybe you are looking for

  • Non Cumulative Cube selective deletion and Reload

    Hi, We have a typical scenario, where in the company code displays # when we execute the inventory reports at plant level, Upon analysis, we did find the Plant to Company code mapping was not maintained at R/3. Now this was fixed, hence we are planni

  • IOS 5 showing duplicate Mobile Me accounts

    I installed iOS 5 today and switched over to iCloud. But now the iPhone Mail app is showing a duplicate copy of my Mobile Me email account. If I delete the account and re-add it, will I lose my contacts and all my iCloud stuff?

  • Oracle certification knowledge

    Hi All, I am working as an Oracle DBA from last 8 months and planning to write Oracle Certification on 11g (OCA & OCP etc). please guide me What Is process and are there any books or Material available for this certification courses. Thanks in advanc

  • How do I export video to end up as 16:9 and not 4:3

    When I export video using QuickTime as current setting at 720x480 anamorphic 16:9, the video ends up being 4:3. Why is this?

  • How to refresh DataBase Tables

    Hello, The below ABAP code is fetching WorkItem Id from the table SDOE00D00000. But the problem is , when i execute the script for the first time, it gets me the old data and when i execute for the second time, it fetches the latest data from the tab