3 Replies Latest reply on May 18, 2007 5:01 PM by psconnolly

    Possible to use TCPMon with mx:WebService?

    psconnolly
      I was cruising through Chapter 18 -- "Use Web Services" -- in the "Getting Started" document. The 'mxna' webservice and controls work just fine as described in the chapter. I thought this would be a good time to get TCPMon wired in so that I could debug my own messages...

      I downloaded and modified the mxna wsdl file so that the old <wsdl:service...:

      <wsdl:service name="mxna2Service">
      <wsdl:port binding="impl:mxna2.cfcSoapBinding" name="mxna2.cfc">
      <wsdlsoap:address location=" http://weblogs.macromedia.com/mxna/webservices/mxna2.cfc"/>
      </wsdl:port>
      </wsdl:service>

      would point to a local port:

      <wsdl:service name="mxna2Service">
      <wsdl:port binding="impl:mxna2.cfcSoapBinding" name="mxna2.cfc">
      <wsdlsoap:address location=" http://127.0.0.1:8686/"/>
      </wsdl:port>
      </wsdl:service>

      Then I changed the Service.mxml to point to the local wsdl file instead of the network one.

      I then set up TCPMon to listen on port 8686 and proxy the requests to 'weblogs.macromedia.com', port 8500 (the default webservices port for JRun). When I do, the request in TCPMon is:

      GET /crossdomain.xml HTTP/1.1

      and the response is:

      java.net.MalformedURLException: no protocol: crossdomain.xml
      at java.net.URL.<init>(URL.java:567)
      at java.net.URL.<init>(URL.java:464)
      at java.net.URL.<init>(URL.java:413)
      at org.apache.ws.commons.tcpmon.Connection.run(Connection.java:276)

      Any idea what the mxna webservices port is set to?