I am trying to generate a sample stub by using a open WS URL http://www.webservicex.net/geoipservice.asmx?WSDL

When I try to run the wsimport I get below error

[DEBUG] Authorization file "C:\Users\User Name\\.metro\auth" not
found.

I tried the suggestion from following link How can I use wsimport to generate a webservice client which wsdl requires authentication?

but could not create the folder .metro as it is not a valid name.

How do I generate the stub or create this folder ?

有帮助吗?

解决方案

You should download the wsdl and run wsimport on it.

If the wsdl has a WS policy that requires authentication, comment these ws policy elements out to simply generate the wsdl.

You can also test with tools e.g. soapUI.

BTW what web service framework are you using?

其他提示

For creating folder with name starting with "." like ".metro" actually name it as ".metro." ( one "." extra in the end), then it will be created. Works for windows 7

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top