Hiya,
I haven't had to look at accessing a Java web service before, but in the
majority of cases you'd think it should be the same as accessing any other
web service ;)
try searching for examples including "SoapHttpClientProtocol". You should be
able to create a class that inherits from that one, hopefully that should
wrap up any of the SOAP messages you need to send.
Andrew
> Hi
>
[quoted text clipped - 57 lines]
> }
> }
Amir - 12 Mar 2007 16:09 GMT
Hi Andrew
Thanks for the post.
The HTTP server code is not exposed as a web service. The Java guys are
using the code below to send it a SOAP message. The HTTP server code
processes the SOAP message's payload, takes appropriate action and the
returns a result (in SOAP format).
There is no WSDL etc: I need to work at a lower level which is why I was
looking at the HttpWebRequest class example.
I hope that helps!?!!
> Hiya,
>
[quoted text clipped - 69 lines]
> > }
> > }
Andrew Brook - 12 Mar 2007 16:38 GMT
Hiya,
So i take it your current code looks something like the following (if you
coded in VB that is) ?
Dim webrReq As HttpWebRequest =
CType(WebRequest.Create("http://www.blahblah.com/"), HttpWebRequest)
Dim strmReq As System.IO.Stream = webrReq .GetRequestStream()
'write some file data to the stream
Dim webresp As HttpWebResponse = myReq.GetResponse()
Andrew
> Hi Andrew
>
[quoted text clipped - 88 lines]
>> > }
>> > }
Andrew Brook - 12 Mar 2007 16:53 GMT
just worth mentioning my code snippet had bugs in it (variable names not
quite matching...)
Andrew
Dim webrReq As HttpWebRequest =
CType(WebRequest.Create("http://www.blahblah.com/"), HttpWebRequest)
Dim strmReq As System.IO.Stream = webrReq .GetRequestStream()
'write some file data to the stream
Dim webresp As HttpWebResponse = strmReq.GetResponse()
> Hiya,
>
[quoted text clipped - 105 lines]
>>> > }
>>> > }
Amir - 12 Mar 2007 17:32 GMT
Hi
My code is very similar to the following sample code:
http://www.thescripts.com/forum/thread427794.html
Amir
> just worth mentioning my code snippet had bugs in it (variable names not
> quite matching...)
[quoted text clipped - 119 lines]
> >>> > }
> >>> > }