-
1. Re: url mapping schemalocation
ropalka Jan 18, 2008 4:44 AM (in response to ajanz)Backup your wsdl file on local disk.
Modify it accordingly (fix the urls).
Force your webservice to use this wsdl file using @WebService(wsdlLocation='relativePath') annotation on your endpoint -
2. Re: url mapping schemalocation
ajanz Jan 18, 2008 7:19 AM (in response to ajanz)something i must do wrong.
i edited the wsdl file, but then could no longer build the project because
<xsd:import namespace="mynamespace"
schemaLocation="http:/myalias:8080/project/Service?wsdl&resource=myschema.xsd"/>
references the remote computer where i want to publish the service.
i am using @WebService(wsdlLocation='relativePath') annotation, so the correct wsdl is used.
any ideas? is there an other way? -
3. Re: url mapping schemalocation
ajanz Jan 18, 2008 7:02 PM (in response to ajanz)i managed to build the project with
<xsd:import namespace="mynamespace"
schemaLocation="http:/myalias:8080/project/Service?wsdl&resource=myschema.xsd"/>
but
http://ip-adress:8080/WebService/project?wsdl
gives an error
how can i publish a web service under a differen url? -
4. Re: url mapping schemalocation
asoldano Jan 19, 2008 5:05 AM (in response to ajanz)"AJanz" wrote:
something i must do wrong.
i edited the wsdl file, but then could no longer build the project because
<xsd:import namespace="mynamespace"
schemaLocation="http:/myalias:8080/project/Service?wsdl&resource=myschema.xsd"/>
While editing the local copy of the wsdl, also change the import url with something like<xsd:import namespace="mynamespace" schemaLocation="myschema.xsd"/>
and add the myschema.xsd to the archive you deploy, along with the wsdl file. -
5. Re: url mapping schemalocation
asoldano Jan 19, 2008 5:14 AM (in response to ajanz)"AJanz" wrote:
http://ip-adress:8080/WebService/project?wsdl
gives an error
What error?
how can i publish a web service under a differen url?
What exactly do you mean? Take a look at this:
http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#How_does_rewriting_of_the_soap_address_in_WSDL_work.3F
and read my reply here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=126138
I guess it's what you're looking for. -
6. Re: url mapping schemalocation
ajanz Jan 19, 2008 8:10 AM (in response to ajanz)many thanks!!!
editing jboss-beans.xml and commenting webservicehost solved my problem.
now the ip or url from the get request is then used as url prefix for the schemalocation.
greetings
sascha