Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Java Web Service Error

Posted on 2010-09-06
9
Medium Priority
?
579 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 33612125
looks like wsdl file is changed from the other end :)

please verify the same
0
 

Author Comment

by:3XLcom
ID: 33612212
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:Gurvinder Pal Singh
ID: 33612222
Sure, gimme some time...also if possible post the proxy stubs that you had generated to call web services
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Author Comment

by:3XLcom
ID: 33612277
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
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 33612758
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
ID: 33612854
I do not know how to do it :(
0
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 33612948
0
 

Author Comment

by:3XLcom
ID: 33612956
NetBean
0
 
LVL 40

Accepted Solution

by:
Gurvinder Pal Singh earned 2000 total points
ID: 33613055
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

688 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