Home method cannot be applied to given types error
Reply: 0

method cannot be applied to given types error

user1525 Published in March 18, 2018, 1:49 am

Right now i'm busy with making my first webservice client. I'm my client a ask for information to my classes. But with one line code i have a problem. It gives an error " method in interface aeoswebservicetype cannot be applied to given types" .. I dont no what i must fill in here.

Suggestions ?

String test = "Jens";
    Aeosws aeows = new Aeosws();
    AeosWebServiceType personinfo = aeows.getAeoswsTypePort();
    **PersonInfo jens = personinfo.findPerson(???????);**


    @WebResult(name = "PersonList", targetNamespace = "http://www.nedap.com/aeosws/schema", partName = "list")
    public PersonList findPerson(
        @WebParam(name = "PersonSearchInfo", targetNamespace = "http://www.nedap.com/aeosws/schema", partName = "search")
        PersonSearchInfo search)
        throws Fault

Personinfo.java :

@XmlType(name = "PersonInfo", propOrder = {
public class PersonInfo
    extends CarrierInfo

    @XmlElement(name = "LastName")
    protected String lastName;
    @XmlElement(name = "PersonnelNo")
    protected String personnelNo;
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.295006 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO