Importing test data into "Web Service Navigator Test Scenario" fails

Hello,
I'm using NW 7.2 Java and have the following problem: when I try to import a XML file containing test data as scenario in the web service navigator and when I execute the scenario or just click on the details of on entry, all input parameters are gone except the first one!
The XML file was created by the web service navigator itself. I added a few sample web service calls using the web service test function and exported the resulting scenario afterwards. The XML file looks like this (some parameters blackened):
<?xml version="1.0" encoding="UTF-8"?>
<rn1:services WSILURL='' xmlns:rn0='java:sap/standard' xmlns:rn1='http://www.sap.com/webas/2007/02/ws/wsnavigator/' xmlns:rn3='http://schemas.xmlsoap.org/soap/encoding/' xmlns:rn2='http://www.w3.org/2001/XMLSchema'>
  <rn1:service name='OrderService' namespace='http://test.sap.com/Scenario/OrderService/' WSDLURL='host:port/sapws/scenario-processes-models_OrderService/OrderService_SAP_DEFAULT_PROFILE_Service/HTTPAuthOverHTTP_1?wsdl&amp;mode=ws_policy'>
    <rn1:operation name='receiveOrder'>
      <rn1:input>
        <Customer>Customer1</Customer>
        <Product>Product1</Product>
        <Quantity>100</Quantity>
        <DeliveryDate>2010-08-19T14:06:24.691+02:00</DeliveryDate>
        <BlockedOrder>false</BlockedOrder>
      </rn1:input>
      <rn1:output></rn1:output>
    </rn1:operation>
    <rn1:operation name='receiveOrder'>
      <rn1:input>
        <Customer>Customer2</Customer>
        <Product>Product2</Product>
        <Quantity>200</Quantity>
        <DeliveryDate>2010-08-19T14:06:24.691+02:00</DeliveryDate>
        <BlockedOrder>false</BlockedOrder>
      </rn1:input>
      <rn1:output></rn1:output>
    </rn1:operation>
  </rn1:service>
</rn1:services>
Thanks in advance for any comments on that issue!!!

Hi
Hi,
You can use XML editors like XMLSPY to send the SOAP request or SOAP client tool provided by SAP for this purpose.
SOAP client- https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/downloads/tools/sap%20nw%20application%20server/sap%20soap%20client%20tool%20download.abst
Various methods to Testing SOAP
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7ccd3e4e-0501-0010-95ae-afa58cb46b75
http://www.soapui.org/gettingstarted/your_first_soapUI_project.html
Hope it helps,
Regards,
Abhishek

Similar Messages

  • Error while executing Secure SOAP web service from Web Service Navigator

    Hi All,
    I have created a web service for a stateless session bean choosing option "Secure SOAP".
    When I am testing it through web service navigator, it is showing following error:-
    Security: Authentication expected but missing
    And in response text it is showing following :-
    HTTP/1.1 500 Internal Server Error
    Connection: close
    Server: SAP J2EE Engine/7.00
    Content-Type: text/xml; charset=UTF-8
    Date: Wed, 17 Dec 2008 05:42:10 GMT
    Set-Cookie: <value is hidden>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
    <SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Security: Authentication expected but missing</faultstring><detail><ns1:com.sap.engine.interfaces.webservices.runtime.ProtocolException xmlns:ns1='http://sap-j2ee-engine/error'>Security: Authentication expected but missing</ns1:com.sap.engine.interfaces.webservices.runtime.ProtocolException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Can anybody help me with above thing?
    And my second question : I have created web service with "Basic Auth SOAP" option. and while executing at web service navigator, its asking for username & password.
    What role / right should be granted to this user so as to make him able to execute this web service? This user must be a UME user, correct?
    Pls help me in resolving this.
    Thanks and regards,
    Amey Mogare

    Hi Fazal,
    I have read the thread, but my questions are still unanswered.
    1. I know how to set username and password while using "Basic Auth SOAP" protocol. But my question in this case is what are the accesses user requires to be able to execute web service.
    2. And about Secure SOAP, why is above mentioned error is appearing?
    Thanks and regards,
    Amey Mogare

  • XML Serialization Error- While testing BAPI turned Web service

    I have a requirement to create sales order in SAP R/3 from an e-commerce site. I went through many forums suggesting "exposing FMs into Web Service". I wrapped BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT into one FM and exposed as Web Service. I did a successful test-sequence.
    When I tested the web service without giving values I got a response asking for "Sold-to Party or Ship-To Party". While testing the Web service with some values, I got the below error -
    XML Serialization Error. Object content does not correspond to Schema restrictions of type [urn:sap-com:document:sap:rfc:functions][numeric4].
    The e-commerce team tried to hit the Web service and got the below error-
    IWAB0383E Error validating parameters
    Note: Our servers does not have any ENHPacks. Only ECC 6.0.
    Please suggest what might have gone wrong and how to resolve this.
    Thanks!

    Hi Gourav Khare,
    I have created WSDL file through function module in SAP-ECC 5.0v.
    I have followed below steps:
    Crated FM (SE37)
    Crated Web-service (SE37)
    Generated WSDL file using (WSADMIN)
    And consumed WSDF file in SOAP UI (SOAP UI 4.5.2 Trailer version)
    Problem is: while consuming WSDL file in  SOAP UI I getting  ‘Serialisation failed’
    For your reference I have furnished xml string below.
    SOAP UI Input:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions">
    <soapenv:Header/>
    <soapenv:Body>
    <urn:YSDF_INV_PRINT_FINAL_RFC_WS_N>
    <!--Optional:-->
    <PWR_INVOICE>
    <INVOICE_SHIPPED_LINE>
    <!--Zero or more repetitions:-->
    <item>
    <POSITION1></POSITION1>
    <SALES_PART></SALES_PART>
                      <PART_DESC></PART_DESC>
    <PRICE></PRICE>
    <QUANTITY></QUANTITY>
    <CUSTOMER_TAX_NO></CUSTOMER_TAX_NO>
    <PROD_NONINVENTORY></PROD_NONINVENTORY>
    <PROD_TAXABLE></PROD_TAXABLE>
    <TAX_LEVEL></TAX_LEVEL>
    </item>
    </INVOICE_SHIPPED_LINE>
    <INVOICE_NO></INVOICE_NO>
    <ORDER_NO></ORDER_NO>
    <DATE_PRINTED></DATE_PRINTED>
    <DIV_CD></DIV_CD>
                <LAST_COST_INVOICE></LAST_COST_INVOICE>
    <DELETE_ZERO_COST></DELETE_ZERO_COST>
    <DELETE_NON_SHIPPED></DELETE_NON_SHIPPED>
    <GLOBALREF></GLOBALREF>
    <ORIGIN></ORIGIN>
    <ORIGINID></ORIGINID>
    </PWR_INVOICE>
    </urn:YSDF_INV_PRINT_FINAL_RFC_WS_N>
    </soapenv:Body>
    </soapenv:Envelope>
    SOAP UI Output:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Body>
    <soap-env:Fault>
    <faultcode>soap-env:Client</faultcode>
    <faultstring xml:lang="en">Serialisation failed</faultstring>
    <detail>
    <n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">
    <MainName>/1BCDWB/WSS0130716111624448000</MainName>
    <ProgName>/1BCDWB/WSS0130716111624448000</ProgName>
    <Line>8</Line>
    <Valid>X</Valid>
    <ReferenceFault>
    <DescriptionText>Error accessing the ref. node 'INVOICE_ID'</DescriptionText>
    <RefName>INVOICE_ID</RefName>
    </ReferenceFault>
    <Caller>
                      <Class>CL_SRG_RFC_PROXY_CONTEXT</Class>
    <Method>IF_SXML_PART~DECODE</Method>
    <Positions>1</Positions>
    </Caller>
    </n0:SimpleTransformationFault>
    </detail>
    </soap-env:Fault>
    </soap-env:Body>
    </soap-env:Envelope>
    And one more things are
    I don't know the exact reason, but now the WSDL is working fine. No Idea, will it be consistent.
    No changes in import and export parameters of RFC and no change in code, even if the logic is changed it should not affect the output on SOAP UI but in my case it does.
    Wonder why all this happens, I cannot explain the exact reason technically because my RFC works fine every time, only issue is with SOAP UI.
    From SAP point of view FM is working fine, and input parameter of FM is optional, validations are done by the programming logic and it will capture the message and its details with respect to input data.
    I am not sure SOAP will work consistently and we are using ECC 5.0 most of the t-code not there like "SOAMANAGER" and all.  
    Kindly help me on this
    Thanks & Regards,
       Akshath.L.T

  • Testing a ABAP Web Service in ECC 6.0

    Hi all,
    I am trying create web services from ABAP using a RFC function module in ECC 6.0. Once the service got created and did configurations in SOAMANAGER also. When trying to test the service using the web service navigator it requests for WSDL URL and when provided the URL, i am getting the below error
    Cannot download WSDL from http://tuasd06db.tuasw2k.tuaspower.com.sg:8000/sap/bc/srt/wsdl/bndg_DE7C08A93E4CF7F1AF60001A64258BFC/wsdl11/allinone/ws_policy/document?sap-client=220: It is not allowed to access this service. If you believe you should be able to, please contact your system administrator.
    As i am new to Web services, is it due to any of the configurations missing or any authorization problem.
    P.S: All the relevant services are active in SICF. I have added a new UDDI service registry also. Have entererd the J2EE server details in the System global settings under Technical configuration.
    Cheers,
    Madhu

    Hi,
    You need to configure the Web Services Navigator WHITE LIST :
    [SAP help|http://help.sap.com/saphelp_nw04s/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/frameset.htm]
    5. To configure Web Service Navigator White List, in the Allowed Hosts field, enter hostnames or parts of hostnames of remote systems, to which you are allowed to connect via Web Services Navigator. To separate entries, use semicolons (, you can use an asterisk (), or a question mark (?), as wildcards. For example, if you want to enable connection to all remote systems, in the Allowed Hosts field, enter an asterisk ().
    I still have one issue standing with web services. Will appreciate if you can help me with that.
    [SAP help|/message/5682617#5682617 [original link is broken]]
    [SAP Help|http://help.sap.com/saphelp_nw70/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/content.htm][Sap Help|http://help.sap.com/saphelp_nw70/helpdata/en/7c/f257422d095542e10000000a1550b0/frameset.htm]
    Thanks & regards,
    ShreeMohan

  • Testing a secured Web Service (Basic -Username/Password)

    Hello,
       I configured security for a custom web service using [this |https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e08627de-9816-2a10-02b7-cbd60f7e4b2c&overridelayout=true] . I configured section
    3.2 Configuring Document Authentication
                   Basic (Username/Password)
    How should I go about testing this. I tried using Web Service Navigator, I get this error:
    00118565098B00220000011400001D8C00047182FEC71535 : Authentication using a wsse:Username token failed. The error was com.sap.security.core.ws.wss.NoSecurityHeaderException No wsse:Security header has been defined for role soap:finalActor. Please verify the policy configuration..

    Please download tutorial bundle from:
    http://java.sun.com/javaee/5/docs/tutorial/information/download.html
    some details about it:
    http://docs.sun.com/app/docs/doc/819-3669/gfiud?a=view
    You can try examples after downloading zip file :
    The zip file also contains a documentation e.g. pdf file.
    There you can find more info.
    Here is one chapter from doc.
    Example: Basic Authentication with JAX-WS
    This section discusses how to configure a JAX-WS-based web service for HTTP basic
    authentication. When a service that is constrained by HTTP basic authentication is requested,
    the server requests a user name and password from the client and verifies that the user name
    and password are valid by comparing them against a database of authorized users.
    Regards Miro

  • Getting Error in Asmx Web Service Unit Testing & not able to debug unit-test Project.

    I am getting below error message while running unit test for ASMX web service
    Failed MyFunction The ASP.NET Web application at 'D:\MyProjectFolder' is already configured for testing by another test run. Only one test run at a time can run
    tests in ASP.NET. If there are no other test runs using this Web application, ensure that the Web.config file does not contain an httpModule named HostAdapter.
    I checked in web.config. Below line already added in web.config. i removed below line to run test again but getting same error message.
    <httpModules>
    <add name="HostAdapter" type="Microsoft.VisualStudio.TestTools.HostAdapter.Web.HttpModule, Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </httpModules>
    i am not able to debug unit test project.
    Please "Mark as Answer" if this post answered your question. :)
    Kalpesh Chhatrala | Software Developer | Rajkot | India
    Kalpesh 's Blog
    VFP Form to C#, Vb.Net Conversion Utility

    Hi Kalpesh,
    >>Failed MyFunction The ASP.NET Web application at 'D:\MyProjectFolder' is already configured for testing by another test run. Only one test run at a
    time can run tests in ASP.NET. If there are no other test runs using this Web application, ensure that the Web.config file does not contain an httpModule named HostAdapter.
    In your web application root, can you find a file named 'web.config.backup'?
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/e2ad0c20-df90-48dc-818c-8c5ec24d9365/visual-studio-test-is-not-hitting-breakpoints-in-debug?forum=vststest
    Fang also shared more information about debugging the unit test for web project here:
    https://social.msdn.microsoft.com/Forums/en-US/daa16086-b1b8-4917-ad8d-65e23b49e1bc/not-able-to-read-webconfig-through-unit-test-feature-by-visual-studiovsts?forum=vststest
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to test/consume asynchronous web services in SAP?

    Hi,
    How do we test/consume asynchronous web services in SAP - either version 4.7 or ECC6.0?
    TIA,
    Regards
    Deepthi

    Go through the following link to know how to consume web services using ABAP:
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3]
    Regards,
    Siva.

  • Error in  testin sender synchronous web service using web service navigator

    Hi
    sorry my connection got  disconnected ..
    I am testing my web service through web service navigator in PI 7.1
    then when i click on  import test data tab and select my wsdl and click on "go" button  . i get the error
    "XML Deserialization Error. XML is not valid. Node <documentation> child of <null> not described in Schema." 
    pls help
    ninad
    Edited by: Ninad Sane on May 26, 2009 3:50 PM

    Hi Ninad,
    While importing wsdl, select category as "WSDL", you are trying to import it as XSD.
    Hope this will help.
    Thanks,
    Nilesh

  • ABAP WebService Created but unable to locate in Web Services Navigator

    Hi all,
    We have got a SAP WAS 640 system and had created an RFC and converted into a Web Service via transaction code SE37. Have also confirmed to be working using the test page.
    However, in the Web Services Navigator homepage, I am unable to find this newly created ABAP Web Service. Neither can I see the newly created ABAP Web Service in NetWeaver Developer Studio.
    My question is, is the ABAP Web Service deployed in the ABAP stack or J2EE stack? How can I get to "see" the Web Service  via the Web Service Navigator page? Did I miss any configurations?
    Thanks for any help rendered.

    Hi,
    Do you see you web service in the wsadmin trans?

  • Need help in design the scenario sending data to web service

    Hello All,
    I need to send data to web service and get the response back.
    i want to use HTTP to soap Scenario.Please let me know the necessary steps in the scenario.
    Thanks and Regards,
    Chinna

    Hi Chinna,
    > i want to use HTTP to soap Scenario.Please let me know the necessary steps in the scenario.
    Split this into 2 scenarios
    1. HTTP to SOAP (Request) treated as Asynchronous.
    2. SOAP to HTTP (Responce) treated as Asynchronous.
    For HTTP to SOAP synchronous scenario
    Here the receiver side request and responce structures no need to create, the receiver client will provide you the XSD file, on that XSD file having the request and responce message structures, so you have to import that to XI server as External definition.
    For sender HTTP you have to create 2 data types, 2 message types as well as 2 message interfaces, 2 message mappings for request and responce messages and 2 service/Message interfaces (HTTP is outbound and SOAP is inbound).
    Configuration objects are same.
    Regards
    Ramesh

  • Want to find out how much data a Web Service is sending to client (JWSDP)

    Well, the subject line didn't fit what I was intended to say, so if you don't get what I am saying in the subject line, I am sorry.
    My question is... I have a Web Service client that uses stub classes generated by wscompile in JWSDP. I am wondering, it there a way to find out how much data the Web Service is sending back to my client.
    The reason I asked is this, I used WebLogic 7.0 workshop to create a Web Service and also used JWSDP to create the same Web Service which deploys to Tomcat. The generated WSDL files from WebLogic workshop and JWSDP that expose the same functionalities have differences. The WSDL from WebLogic workshop is 1.5 times the size of the WSDL from JWSDP. When I tested both with client programs, calling the Web Service in Tomcat (which uses JWSDP to built) is much quicker than calling the Web Service in WebLogic.
    For this reason, I would liked find out if the Web Service from WebLogic is sending more data than the one created with JWSDP.
    Thanks.

    I've used the TcpTunnelGui utility to see the HTTP flowing up and down the wire, that might help you.

  • Error "Empty list of services in WSDL" at Web Services Navigator

    Hello all,
    I have a problem when trying to test my web service in the Web Services Navigator. I will have to call this web service from a web dympro.
    This is the error I get when selecting my destination in the search form:
    Empty list of services in WSDL http://wsdl_url
    (( [See screenshot|http://img402.imageshack.us/img402/6381/errorwebservice2xh9.png] ))
    What I've done until now is:
    1) I published a web service based on a custom ABAP RFC using the creation wizard and finally I published it in our services registry.
    2) I created "metadata" and "execution" destinations using the Destination Template Management in CE.
    I haven't done any configuration in transactions WSCONFIG/WSADMIN or SOAMANAGER. (Could I have something missing here?)
    BTW, I am new at CE and web dympro...

    Hi,
    I've the same problem when calling a self defined WebService from Web Dynpro.
    I created the service by using a proxy, creating an endpoint with SOAMANAGER and publishing it via WSPUBLISH.
    The errormessage 'Empty list of services in WSDL' is right cause the section
    <wsdl:service name="...
    after the binding-section at the end of the WSDL is missing.
    I tried the same with a SAP-CRM-service (CRM_BPBASICDATABYNAMEADDRQR) and here all is fine cause in the WSDL the service-section is existent.
    I'm using the Services Registry of SAP PI (SAPKB71006)
    May be this help somebody to help us.
    Regards
    Christoph

  • Web Service navigator - external service

    Shuld the web service navigator be able to test external web services? (i.e. 3rd party external web services available from companies like Xignite, StrikIron etc..)
    I have tried but with no success. We have WSDL and can test with other web service tools (non-SAP), but seems tools within portal have trouble.
    Is there some type of configuration that is necessary to allow this?

    Hi,
    if you are getting an error like
    Cannot download WSDL from http://host:port/wisd/XXXX/XXXXXXXX/wsdl/YYYYYY.wsdl: It is not allowed to access this service. If you believe you should be able to, please contact your system administrator
    then Please
    - Open Visual Administrator of Portal
    - Server > Services > Web Services Container
    - Under Runtime TAB, please enter * (star) in the WEb Service Navigator White List > Allowed Hosts
    After, try again
    more info at: http://help.sap.com/saphelp_nw04s/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/frameset.htm

  • Web Services navigator: https architecture

    Hello,
    I'm starting to work with Web Services.  I have troubles using the Web Services Navigator with our https framework:
    - J2EE engine ( version 7) https enabled (x509)
    - Back end is https enabled (x509), version ECC6
    I'm able to call my web service and the wsdl using a custom client application.  But when I try to use the Web Services navigator, I get an error message:
    Cannot download WSDL from <WSDL https url>: Invalid Response Code: (403) Forbidden. The requested URL was:"<WSDL https url>"
    I guess it's an authentication issue between the j2ee server and the abap system.  Should https be configured between those 2 servers?  How?  Any suggestion would be greatly appreciated!
    Thanks,
    Laurent

    Hi,
    Try enabling SSL using transaction SICF for your web service.
    Follow the following path. /default_host/sap/bc/srt/rfc/sap/<your webservice>
    Go to Logon Data & select SSL.
    Lets check if it works..
    Regards
    Pushkar

  • Migrating BAPI & RFC function modules into web services

    What is the advantage of migrating BAPI & RFC function modules into web services?

    Hi.
    That's a very good question. Why did you ask it, are you considering doing so?
    I wouldn't think there would be any performance advantages using WebServices.
    You could make your BAPI's available for other systems than Web Dynpro or SAP systems by turning them into WebServices.
    That could be an issue when you want to use different integration engines perhaps.
    A WebService might also be better for dealing with large number of requests I guess.
    When dealing with XML you can also use the advantage of XSLT for validating your data.
    The main advantages would still be the availability of your service for non-SAP systems.
    /Mikael

Maybe you are looking for