Skip to main content

Automaticaly generated wsdl : schema location problem

1 reply [Last post]
super_raj
Offline
Joined: 2007-11-25
Points: 0

I have written a small webservice and deploying onto Sun App Server. I am accessing the wsdl from client and it gives me following error..

wsdl2java:
[copy] Copying 1 file to F:\HandCoded\
[wsimport] error: http://JVVDelInspriron1300:8080/convertaddressA1/ConvertAddressService/__container$publishing$subctx/WEB-INF/wsdl/ConvertAddressService_schema1.xsd
[wsimport] unknown location
[wsimport]
[wsimport] error: java.io.FileNotFoundException: http://JVVDelInspriron1300:8080/convertaddressA1/ConvertAddressService/__container$publishing$subctx/WEB-INF/wsdl/ConvertAddressService
_schema1.xsd
[wsimport]

what I notice here if I change my local computer name with my IP address in generated wsdl it could find the schema file
.
For example, instead of "http://JVVDelInspriron1300:8080/convertaddressA1..."
if I change to "http://192.156.1.123:8080/convertaddressA1..."
then it works. I am deploying webservice on server and it automaticaly generates the wsdl for me. So I have to manually change the wsdl as above.

Any help appreciated.
rp

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
super_raj
Offline
Joined: 2007-11-25
Points: 0

Actually, it does not seem really a problem. I just restarted the server and it works now even with local computer name.