Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 31689 invoked from network); 1 Oct 2007 16:46:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2007 16:46:52 -0000 Received: (qmail 16302 invoked by uid 500); 1 Oct 2007 16:46:33 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 15808 invoked by uid 500); 1 Oct 2007 16:46:32 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 15794 invoked by uid 99); 1 Oct 2007 16:46:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 09:46:31 -0700 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [198.246.249.147] (HELO mail3.tmw.com) (198.246.249.147) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 16:46:31 +0000 Received: from mail3.tmw.com (localhost [127.0.0.1]) by localhost.tmw.com (Postfix) with ESMTP id EAE196D5 for ; Mon, 1 Oct 2007 11:46:08 -0500 (CDT) Received: from corpmx01.tmw.com (unknown [172.26.1.181]) by mail3.tmw.com (Postfix) with ESMTP id D82D56BE for ; Mon, 1 Oct 2007 11:46:08 -0500 (CDT) Received: from tmwmxhou06.tmw.com ([172.26.1.186]) by corpmx01.tmw.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 1 Oct 2007 11:46:08 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8044A.90E3FA9C" Subject: Using wsmonitor to debug Axis2 WS call Date: Mon, 1 Oct 2007 11:46:08 -0500 Message-ID: <12B8FA325FD1B94ABD0709107C72100669AC32@tmwmxhou06.tmw.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Using wsmonitor to debug Axis2 WS call Thread-Index: AcgESpCqbGkug5h0RpaKR3D0vQ8oJQ== From: "Gamble, Wesley (WG10)" To: X-OriginalArrivalTime: 01 Oct 2007 16:46:08.0727 (UTC) FILETIME=[91067670:01C8044A] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C8044A.90E3FA9C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable All, =20 I suspect that the namespace is not being set correctly for two authentication elements that I am sending in a SOAP header. I want to use wsmonitor to try to debug this. =20 I start running wsmonitor locally, listening to localhost:4040. Then I attempt to configure my stub to go to my wsmonitor proxy instead of the actual endpoint. =20 Here's my main, client level code: =20 public static void main(java.lang.String args[]) { try { InventoryServiceStub stub =3D new InventoryServiceStub =20 ("https://api.channeladvisor.com/ChannelAdvisorAPI/v1/InventoryService.a smx?WSDL"); =20 InventoryServiceStub.APICredentials0 apiCredentials =3D = new InventoryServiceStub.APICredentials0(); InventoryServiceStub.APICredentials credential_data =3D = new InventoryServiceStub.APICredentials(); credential_data.setDeveloperKey("key"); credential_data.setPassword("pass"); =20 apiCredentials.setAPICredentials(credential_data); =20 InventoryServiceStub.Ping req =3D new InventoryServiceStub.Ping(); InventoryServiceStub.PingResponse resp =3D stub.Ping(req, apiCredentials); =20 System.err.println(resp.getPingResult()); }=20 catch(Exception e){ e.printStackTrace(); System.err.println("\n\n\n"); } } =20 And here is where I'm trying to redirect to the proxy, inside of the call=20 "InventoryServiceStub.Ping req =3D new InventoryServiceStub.Ping();" =20 public static final javax.xml.namespace.QName MY_QNAME =3D new javax.xml.namespace.QName( // "http://api.channeladvisor.com/webservices/", "http://localhost:4040/webservices/", "Ping", "ns1"); =20 My questions are as follows: =20 1) Do I need to proxy the URL for the WSDL - I don't think so, but am not sure. 2) Do I need to proxy something else in order to get the ping request to hit my proxy? =20 Thanks, Wes =20 =20 ------_=_NextPart_001_01C8044A.90E3FA9C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

All,

 

I suspect that the namespace is not being set = correctly for two authentication elements that I am sending in a SOAP header.  I = want to use wsmonitor to try to debug this.

 

I start running wsmonitor locally, listening to localhost:4040.  Then I attempt to configure my stub to go to my = wsmonitor proxy instead of the actual endpoint.

 

Here’s my main, client level = code:

 

public static = void main(java.lang.String args[]) = {

        = try {

      =         InventoryServiceStub stub =3D

      =             = new InventoryServiceStub

      =             = ("https://api.channeladvisor.com/ChannelAdvisorAPI/v1/= InventoryService.asmx?WSDL");

      =        

      =         InventoryServiceStub.APICredentials0 apiCredentials =3D new InventoryServiceStub.APICredentials0()= ;

      =         InventoryServiceStub.APICredentials credential_data =3D new InventoryServiceStub.APICredentials();=

      =         = credential_data.setDeveloperKey("key");

      =         = credential_data.setPassword("pass");    =        

      =         = apiCredentials.setAPICredentials(credential_data);

     

      =         InventoryServiceStub.Ping req =3D new InventoryServiceStub.Ping();

      =         InventoryServiceStub.PingResponse resp =3D stub.Ping(req, apiCredentials);

     

      =         System.err.println(resp.getPingResult());

        } =

        = catch(Exception e){

          =   e.printStackTrace();

          =   System.err.println("\n\n\n");

       =  }

    }

 

And here is where I’m trying to redirect to the = proxy, inside of the call

InventoryServiceStub.Ping req =3D new InventoryServiceStub.Ping();“

 

public static = final javax.xml.namespace.QName = MY_QNAME =3D new javax.xml.namespace.QName(

          =     //  = "http://api.channeladvisor.com/webservices/",

          =       "http://localhost:4040/webservices/",         =             &= nbsp; 

          =       "Ping",

         &= nbsp;      "ns1");

 

My = questions are as follows:

 

1)    Do I need to proxy the URL for the WSDL – I = don’t think so, but am not sure.

2)    Do I need to proxy something else in order to get the ping = request to hit my proxy?

 

Thanks,

Wes

 

 

------_=_NextPart_001_01C8044A.90E3FA9C--