UNIZETO_TECHNOL_2
15 years agoOccasional Contributor
Host/port in "schemaLocation" attr in WSDL - .war on JBOSS
I have created .war file (MockService) using soapUI. Schema used in the project include the following:
After deployment on JBOSS 4.2.2 the request [tt:go3pqy45]http://someip:8080/dir/MyService?wsdl[/tt:go3pqy45] returns:
which is correct, but I also need to include protocol, host IP and service port on the beginning of "schemaLocation".
The question is: how to configure .war generated by soapUI to return protocol, host IP and service port in "schemaLocation" attribute - for example
...
<xs:import namespace="http://www.somesite.pl/dir/someschema" schemaLocation="../../dir/someschema.xsd"/>
...
After deployment on JBOSS 4.2.2 the request [tt:go3pqy45]http://someip:8080/dir/MyService?wsdl[/tt:go3pqy45] returns:
...
<xs:import namespace="http://www.somesite.pl/schema"
schemaLocation="/dir/MyService?WSDL&interface=MyServiceBinding&part=someschema.xsd"/>
...
which is correct, but I also need to include protocol, host IP and service port on the beginning of "schemaLocation".
The question is: how to configure .war generated by soapUI to return protocol, host IP and service port in "schemaLocation" attribute - for example
...
<xs:import namespace="http://www.somesite.pl/schema"
schemaLocation="http://someip:8080/dir/MyService?WSDL&interface=MyServiceBinding&part=someschema.xsd"/>
...