Skip to main content
1-Visitor
November 27, 2014
Question

Error in creating WebServices client

Hi All,

Am creatig webservices follwing WebServicesFramework guide and done with below steps

Generated TrustStore ad key store and made property changes accordingly

ant -Dproject.dir=<Windchill>/prog_examples/jws/MyProject -Dservlet.name=MathService -Dsecurity.policy=userNameAuthSymmetricKeys -Dservice.type.id=org.myorg.MathService -Dmain.class=org.myorg.MathClient -f bin/adminTools/WebServices/new-project.xml create

This created following directory structure

src/ :

src/build.xml:

src/tasks/org/myorg/MathService:

src_client/:

src_client/build.xml:

src_client/org/myorg/MathClient.java

Modified empty client code by setting credentials and compiled

% cd <Windchill>/prog_examples/jws/MyProject/src_client

% ant

Ending up with the error code 401 and i assume this is related to authentcation. And the version ofwindchill is 10.2 M020

Please share your insights.