Problems playing around with webservice between Java and .NET
Hello Guys!I sitting at home and play around with webservices.
We have deployed an webservice in a IIS 7 at our LAN.
We can without any problem reach the wsdl from a web browser from any computer at:
http://dator1:800/myservice.svc?wsdl
We can also reach a page at:
http://dator1:800/myservice.svc
I can then create a client package with:
<target name="gen_client_stub" depends="taskdef">
<property name="wsdlUrl" value="http://dator1:800/myservice.svc?wsdl" />
<clientgen wsdl="${wsdlUrl}"
packageName="myservice.client"
clientJar="/home/fredrik/eclipse_workspace/webservicecaller/myservice_client.jar" >
<classpath>
<pathelement path="/home/fredrik/Applications/bea/weblogic81/server/lib/weblogic.jar"/>
<pathelement path="/home/fredrik/Applications/bea/weblogic81/server/lib/webservices.jar"/>
</classpath>
</clientgen>
</target>
I can also set up a project with soapUi and get a request:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
<soap:Header/>
<soap:Body>
<tem:GetCat>
<!--Optional:-->
<tem:catID>?</tem:catID>
</tem:GetCat>
</soap:Body>
</soap:Envelope>
But when I try to use the myservice_client.jar from a java app I just get:
<detail><bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.io.IOException: The server at http://dator1:800/myservice.svc returned a 500 error code (Internal Server Error). Please ensure that your URL is correct, and the web service has deployed.
And from soapUI I just get a TimeOut:
Thu Apr 03 20:29:13 CEST 2008:ERROR:java.net.SocketTimeoutException: Read timed out
java.net.SocketTimeoutException: Read timed out
But if we try to call it from a client inside the .Net environment on the same machine as the webservice resides, then it answers as it should.
If any one got any idea please let us know.
Best regards
Fredrik