Topic
  • 5 replies
  • Latest Post - ‏2011-10-19T15:02:15Z by venkateshv76
SystemAdmin
SystemAdmin
535 Posts

Pinned topic Web service logging tools

‏2011-10-13T21:49:46Z |
I am getting close to completing some core code to communicate to a Web Service, which will serve as a provider/server. My code represents the client requesting information based on what I pass.... yada,yada,yada...

What I'm looking for now is a tool or a place on the iSeries,AS400 where I can see the XML document that was sent. This will be very helpful when my application starts to handle application request that are more complex and will allow me to see the XML handed to the WS vs. what they rcv'ed and processed.

Any info would be appreciated.
Updated on 2011-10-19T15:02:15Z at 2011-10-19T15:02:15Z by venkateshv76
  • venkateshv76
    venkateshv76
    15 Posts

    Re: Web service logging tools

    ‏2011-10-14T12:31:16Z  
    Are you using IWS??? If you're using IWS stubs to call a Web service, you can generate trace logs to see the actual SOAP message that is sent/received to/from the Webservice.

    Regards,
    Venky
  • SystemAdmin
    SystemAdmin
    535 Posts

    Re: Web service logging tools

    ‏2011-10-14T14:04:21Z  
    Are you using IWS??? If you're using IWS stubs to call a Web service, you can generate trace logs to see the actual SOAP message that is sent/received to/from the Webservice.

    Regards,
    Venky
    All tools and services are from/by IBM which includes the WSDL2ws.sh.
  • SystemAdmin
    SystemAdmin
    535 Posts

    Re: Web service logging tools

    ‏2011-10-14T15:30:11Z  
    All tools and services are from/by IBM which includes the WSDL2ws.sh.
    I found the following note on the internet. It is referring to a directory on the iSeries. Currently I don't have access to this location and sent a email asking to change my authority so I can see whats in these folders... for those of you that may have access do you see logs or the XML documents that went through the pipe?

    /www/WSERVICE/lwi/runtime/webservicesmax/eclipse/plugins/WebServicesEngine/WEB-INF/conf/axis2.xml
    <parameter name="disableREST" locked="true">true</parameter>
    <parameter name="disableSOAP12" locked="true">true</parameter>
    Examples – Above ws.apache.org for more values.
    Directory - /www/WSERVICE
    /conf – httpd.conf, i5OSStartup.properties
    /htdocs
    /logs - **Important ** Error information
    /lwi/logs -
    /webservices
    Directory - /www/WSERVICE/webservices
    /temp
    /services ** Important ** all customer service artifacts here
    /archive
  • SystemAdmin
    SystemAdmin
    535 Posts

    Re: Web service logging tools

    ‏2011-10-14T18:57:02Z  
    I found the following note on the internet. It is referring to a directory on the iSeries. Currently I don't have access to this location and sent a email asking to change my authority so I can see whats in these folders... for those of you that may have access do you see logs or the XML documents that went through the pipe?

    /www/WSERVICE/lwi/runtime/webservicesmax/eclipse/plugins/WebServicesEngine/WEB-INF/conf/axis2.xml
    <parameter name="disableREST" locked="true">true</parameter>
    <parameter name="disableSOAP12" locked="true">true</parameter>
    Examples – Above ws.apache.org for more values.
    Directory - /www/WSERVICE
    /conf – httpd.conf, i5OSStartup.properties
    /htdocs
    /logs - **Important ** Error information
    /lwi/logs -
    /webservices
    Directory - /www/WSERVICE/webservices
    /temp
    /services ** Important ** all customer service artifacts here
    /archive
    I got a solution from another forum and wanted to share that with anyone that was following this thread...

    Link:http://forums.systeminetwork.com/isnetforums/showpost.php?p=750241&postcount=7
  • venkateshv76
    venkateshv76
    15 Posts

    Re: Web service logging tools

    ‏2011-10-19T15:02:15Z  
    I got a solution from another forum and wanted to share that with anyone that was following this thread...

    Link:http://forums.systeminetwork.com/isnetforums/showpost.php?p=750241&postcount=7
    Daryl,

    That's what I was asking you ...
    "Are you using IWS??? If you're using IWS stubs to call a Web service, you can generate trace logs to see the actual SOAP message that is sent/received to/from the Webservice."

    Using axiscAxisStartTrace methods you can generate LOG files on IFS folders for the IWS client requests sent to a Webservice to see the SOAP requests and Reposonse. It generates trace files that look like this ...

    • Start Display Current Environment ************
    Axis C++ libraries built on Mar 28 2011 at 14:38:22
    CLASSPATH=/chgctl/B2B/JavaDev/GenHash.jar
    • End Display Current Environment *************

    Config File settings START
    AXCONF_WSDDFILEPATH = NULL
    AXCONF_LOGPATH = NULL
    AXCONF_CLIENTLOGPATH = NULL
    AXCONF_CLIENTWSDDFILEPATH = NULL
    AXCONF_AXISHOME = /QIBM/PRODDATA/OS/WEBSERVICES/V1/CLIENT
    AXCONF_TRANSPORTHTTP = /QIBM/PRODDATA/OS/WEBSERVICES/V1/CLIENT/LIB/LIBHTTP_TRANSPORT.SO
    AXCONF_TRANSPORTSMTP = NULL
    AXCONF_XMLPARSER = /QIBM/PRODDATA/OS/WEBSERVICES/V1/CLIENT/LIB/LIBAXIS_XMLPARSER.SO
    AXCONF_NODENAME = server name
    AXCONF_LISTENPORT = listen port
    AXCONF_SSLCHANNEL_HTTP = /QIBM/PRODDATA/OS/WEBSERVICES/V1/CLIENT/LIB/LIBHTTP_CHANNELSSL.SO
    AXCONF_CHANNEL_HTTP = /QIBM/PRODDATA/OS/WEBSERVICES/V1/CLIENT/LIB/LIBHTTP_CHANNEL.SO
    AXCONF_SECUREINFO = NULL
    AXCONF_LOGFILTER = NULL

    Config File settings END OF
    ^07/10/2011 15:17:07:230] 00000030 transport < HTTPChannel::writeBytes(): Exit with integer value of 246
    ^07/10/2011 15:17:07:230] 00000030 transport > HTTPChannel::writeBytes():
    07/10/2011 15:17:07:230 00000030 transport D HTTPChannel::writeBytes():
    <?xml version='1.0' encoding='utf-8' ?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <ns1:SearchFreeText xmlns:ns1="http://tempuri.org/xxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxx">
    <ns1:text>xxx xxx</ns1:text>
    <ns1:lPremise></ns1:lPremise>
    </ns1:SearchFreeText>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>