Skip to Content
author's profile photo Former Member
Former Member

Test/Sample documents for the SOAP RunTime Handler

(not sure if this is the right forum ...)

Hello,

Does anyone know if it is possible to generate sample/test documents for the SRT other than by using the J2EE Web Service Navigator (which I don't have access to).

Any help much appreciated.

Cheers,

Piers Harding.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 12:27 PM

    hi,

    what's a 'sample/test document for the SRT' supposed to be?

    a sample XML document conforming to the WSDL? auto-generated? or do you mean a possibility to rapidly test the service?

    if you've got MS Office 2003 one quiet easy way to test it is by using Infopath, importing the WSDL and generating a form.

    Another way would be using some scripting language hack which I prefer to do, since it allows me to debug the full http messages exchanged (including http headers, especially proxy information and the like)

    anton

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Perhaps saying sample "payload" would have been clearer - anyway, the hack that I put together (see above) gave me enough of a clue to move on.

      Thanks for replying though.

      Cheers,

      Piers Harding.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2006 at 12:02 PM

    Actually - here's a bit of a trick:

    #! /usr/bin/env ruby
    # use Perl GET to drag down the wsdl file
    #GET "http://seahorse.local.net:8000/sap/bc/srt/rfc/sap/Z_EXRATES?sap-client=010&wsdl=1.1&mode=sap_wsdl&style=rpc&sap-user=developer&sap-password=developer" > zexrates.wsdl
    
    require 'soap/wsdlDriver'
    SRV = 'http://seahorse.local.net:8000/sap/bc/srt/rfc/sap/Z_EXRATES'
    # slurp everything up to the port
    host = /^(.*?w)//.match(SRV)[1]
    user = "developer"
    passwd = "developer"
    
    factory = SOAP::WSDLDriverFactory.new('zexrates.wsdl')
    
    was = factory.create_rpc_driver()
    was.options["protocol.http.basic_auth"] << [host, user, passwd]
    
    was.wiredump_dev = STDERR
    
    # operation name is turned into a method 
    puts was.BAPI_EXCHANGERATE_GETDETAIL('2006-09-06', 'AUD', 'M', "")
    

    You've gotta love ruby!

    This gets me most of the way through - but it would still be usefull to have an indpendent SAP way of determining what a SOAP document should look like.

    Cheers,

    Piers Harding.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2006 at 05:16 PM

    Hi Piers,

    do you have access to a 7.00 ABAP System in this enviroment? Here you can easily create a ECATT Test Case for a Web Service.

    Regards

    Gregor

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.