Java Web Service Error

PMUMService is my webservice and my code as given below

This is the error what i see

setUserName(javax.xml.bind.JAXBElement<PmumService.StringValue>) in PmumService.LoginMessage cannot be applied to (PmumService.StringValue)
PmumService.EVDServis services = new PmumService.EVDServis();
        System.out.print(services.getWSDLDocumentLocation());
        PmumService.LoginMessage LMessage  = new PmumService.LoginMessage();
        PmumService.StringValue SValue1 = new PmumService.StringValue() ;
        SValue1.setV("ad");
        PmumService.StringValue SValue2 = new PmumService.StringValue() ;
        SValue2.setV("pass");
        LMessage.setUserName(SValue1);
        LMessage.setPassword(SValue2);
        javax.xml.bind.JAXBElement SValue3 = null ;
        services.getEVDServisSOAP11PortHttp().login(LMessage, null, null);
        System.out.print(SValue3.getValue());

Open in new window

3XLcomAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Gurvinder Pal SinghConnect With a Mentor Commented:
0
 
Gurvinder Pal SinghCommented:
looks like wsdl file is changed from the other end :)

please verify the same
0
 
3XLcomAuthor Commented:
I had never able to connect it :)
http://dgpys.teias.gov.tr/dgpys/services/EVDServis?wsdl
This is the service address if you possible to check i will be very glad for it
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
Gurvinder Pal SinghCommented:
Sure, gimme some time...also if possible post the proxy stubs that you had generated to call web services
0
 
3XLcomAuthor Commented:
There is only one thing for login call we need to get an answer
0 for succedd -1 for wrong access i can't provide the real user name and pass but if we should make a suceeded connection with -1 result it could be perfect for to understand how to process goes
0
 
Gurvinder Pal SinghCommented:
can't make out much from wsdl about the error.
As far as service is concerned, it takes as parameter a LoginRequest object and returns LoginResponse.

Try one think,

regenerate the stubs and proxy again from the wsdl and try to invoke the service
0
 
3XLcomAuthor Commented:
I do not know how to do it :(
0
 
Gurvinder Pal SinghCommented:
0
 
3XLcomAuthor Commented:
NetBean
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.