NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Iann
Joined: 21 Jul 2009 Posts: 1
|
Posted: Tue Jul 21, 2009 7:38 pm Post subject: Trying to consume a web service with netbeans 6.7 |
|
|
Hello,
iam new to netbeans 6.7. Been working for 2 years mostly in progress and now iam getting back to java world with this IDE.
Iam using jdk 1.6.14 and netbeans 6.7 for this experiment iam trying to do.
My problem is, that iam trying to consume this web service https://isir.justice.cz:8443/isir_ws/services/IsirPub001?wsdl I created a java aplicatian project and then made a web service client. This mapped me 6 methods, iam trying to use the getIsirpub0012 method to pass a long variable as input parameter and receive back parameter (should be XML with some rows, prolly interpreted as list of types by java.
My problem is, that when i try to invoke this in main class i first get error, that java.util.List<isirpub001.types.IsirPub001Data> result = port.getIsirPub0012(long1); doesnt support long data type and expects something else. When i generate the method (adviced by error help) and try to run the code, i get this error "javax.xml.ws.WebServiceException: Unable to create JAXBContext".
I tryed to look for a similar problem around this forums, but were unable to find any help. Also i made this (really little) progress after first tutorials with consuming web services with netbeans (http://www.netbeans.org/kb/docs/websvc/client.html and http://www.netbeans.org/kb/docs/websvc/jax-ws.html).
Is there any advice for me, what iam doing wrong, what should i try to learn and understand?
Thanks in advance and have a nice day.
Iann |
|
| Back to top |
|
 |
lukoo
Joined: 21 Aug 2009 Posts: 1
|
Posted: Fri Aug 21, 2009 11:32 am Post subject: ISIR WS |
|
|
You should use
isirpub001.types.GetIsirPub0012 parm = new isirpub001.types.GetIsirPub0012();
parm.setLong1(-1);
isirpub001.types.GetIsirPub0012Response result = port.getIsirPub0012(parm); |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|