• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 582
  • Last Modified:

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

0
3XLcom
Asked:
3XLcom
  • 5
  • 4
1 Solution
 
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
 
Gurvinder Pal SinghCommented:
Sure, gimme some time...also if possible post the proxy stubs that you had generated to call web services
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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
 
Gurvinder Pal SinghCommented:
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now