I have looked at your class. If I had understand it right you want to create
two objects from the class EndUserIdentifier.
EndUserIdentifier a = new EndUserIdentifier();
a.setValue(new URI("tel:+44123456789;vnd.bt.cli-presentation=available"));
EndUserIdentifier b = new EndUserIdentifier();
b.setValue(new URI("tel:+44123456789;vnd.bt.cli-presentation=available"));
String c = 9f;
Then call String result = stub.makeACall(a, b, c);
Hope it's right.
Ferruh
-----Urspr�ngliche Nachricht-----
Von: Plorks mail [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 2. Juni 2005 11:24
An: [email protected]
Betreff: convert from string to EndUserIdentifier type
Hi all
I'm trying to access a remote web service. I've done wsdl2java on the wsdl
ile to generate the stubs
I'm now trying to call a method which takes 3 parameters (EndUserIdentifier
a, EndUserIdentifier, b String c)
I'm trying to make the params a and b of type EndUserIdentifier, so i've
done this
EndUserIdentifier a = "tel:+44123456789;vnd.bt.cli-presentation=available"
EndUserIdentifier b = "tel:+44123456789;vnd.bt.cli-presentation=available"
But i get the error cannot convert from string to EndUserIdentifier
Is anyone able to help me please to solve this problem
I've inc. EndUserIdentifier .java
Here's the wsdl i've used to dowsdl2java
http://uddi.bt.com/WSDL/parlayx/thirdpartycallservice/rpc-lit/parlayx_third_
party_calling_service.wsdl
Here's my code
String c = 9f;
ThirdPartyCallServiceLocator locator = new ThirdPartyCallServiceLocator();
ThirdPartyCallBindingStub stub =
(ThirdPartyCallBindingStub)locator.getPort(ThirdPartyCallPort.class);
stub.setUsername("username");
stub.setPassword("password");
String result = stub.makeACall(a, b, c);
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger 7.0 today!
http://messenger.msn.co.uk