Avatar of 3XLcom
3XLcom
 asked on

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

JavaWeb ServicesWCF

Avatar of undefined
Last Comment
Gurvinder Pal Singh

8/22/2022 - Mon
Gurvinder Pal Singh

looks like wsdl file is changed from the other end :)

please verify the same
3XLcom

ASKER
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
Gurvinder Pal Singh

Sure, gimme some time...also if possible post the proxy stubs that you had generated to call web services
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
3XLcom

ASKER
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
Gurvinder Pal Singh

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
3XLcom

ASKER
I do not know how to do it :(
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Gurvinder Pal Singh

3XLcom

ASKER
NetBean
ASKER CERTIFIED SOLUTION
Gurvinder Pal Singh

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.