Solved

Java Web Service Error

Posted on 2010-09-06
9
572 Views
Last Modified: 2012-05-10
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
Comment
Question by:3XLcom
  • 5
  • 4
9 Comments
 
LVL 40

Expert Comment

by:gurvinder372
Comment Utility
looks like wsdl file is changed from the other end :)

please verify the same
0
 

Author Comment

by:3XLcom
Comment Utility
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
 
LVL 40

Expert Comment

by:gurvinder372
Comment Utility
Sure, gimme some time...also if possible post the proxy stubs that you had generated to call web services
0
 

Author Comment

by:3XLcom
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 40

Expert Comment

by:gurvinder372
Comment Utility
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
 

Author Comment

by:3XLcom
Comment Utility
I do not know how to do it :(
0
 
LVL 40

Expert Comment

by:gurvinder372
Comment Utility
0
 

Author Comment

by:3XLcom
Comment Utility
NetBean
0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now