what is the Resource URL in the service editor of Form builder

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

what is the Resource URL in the service editor of Form builder

isaac-2
I am using the Service Editor from the Form builder to test a webservice and it is failing with resource error.
The webservice is running on jboss 4.0.5GA on a linux server.
I can test the services from Eclipse web services explorer and it returns the data.
It takes a single parameter and returns some data that matches the parameter value

This is the output from tcpmon when I submit the request through eclipse
>>
POST /webservice-test/contacts HTTP/1.1
Host: localhost:8085
Content-Type: text/xml; charset=utf-8
Content-Length: 356
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: IBM Web Services Explorer
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Connection: close

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:q0="http://service.test.sample"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <q0:findList>
      <q0:param0>sam</q0:param0>
    </q0:findList>
  </soapenv:Body>
</soapenv:Envelope>


HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5
Content-Type: text/xml;charset=UTF-8
Date: Tue, 09 Sep 2008 22:31:53 GMT
Connection: close

<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header>
</env:Header>
<env:Body>
<ns2:getListDataResponse xmlns:ns2="http://service.test.sample">
<Data>
<name>sam</name>
<City>Houston</City>
</Data>
</ns2:getListDataResponse>
</env:Body></env:Envelope>

>>
==========================================================

the Soap Body content is
>>

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
 xmlns:q0="http://service.test.sample">
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
 <q0:findList>
  <q0:param0>sam</q0:param0> 
  </q0:findList>
  </soapenv:Body>
  </soapenv:Envelope>
>>
I am not sure what is needed in the Resource URL of the Service Editor. If I put in <a href="http://servername:port/webservice-test/contacts">http://servername:port/webservice-test/contacts I get an error "env:ServerUnsupported content type: application/xml". I can access the wsdl by this url <a href="http://servername:port/webservice-test/contacts?wsdl">http://servername:port/webservice-test/contacts?wsdl
Any idea how to invoke an operation from a service in jboss.
When I access the services in jboss, it lists these information for the ContactsService which I am trying to test.

ServiceEndpointID jboss.ws:context=webservice-test,endpoint=ContactsService
ServiceEndpointAddress http://servername:8080/webservice-test/contacts?wsdl 

Any idea?
Thanks