Question

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 ?

Was it helpful?

Solution

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?

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top