Re: [Montag-users] how to access montag services from a java client
Status: Beta
Brought to you by:
sbtourist
|
From: Sergio B. <s....@pr...> - 2006-01-18 12:10:51
|
Alexandra Mart=EDnez wrote:
> I coded up a simple java client program to access one of
> the montag methods (e.g., createCollection), but I keep
> getting this error:
>=20
> Error encountered:
> montag.core.MontagSOAPFault
Hello Alexandra,
sorry for my late reply.
Can you post the whole error message?
> Here is the source code of the java program I wrote, in
> case it helps.=20
[CUT]
What version of Axis APIs do you use?
However, you can try this snippet:
String endpoint =3D =09
"http://localhost:8084/montag/services/CollectionManager";
Service service =3D new Service();
Call call =3D (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new QName("http://soapinterop.org/",=20
"createCollection"));
call.invoke(new Object[] {parent, child});
...
Let me know.
Regards,
Sergio B.
--=20
Sergio Bossa (http://sbtourist.blogspot.com/)
- Pro-Netics s.r.l. (http://www.pro-netics.com)
- Montag (http://montag.sourceforge.net)
- QuickNote (http://quicknote.sourceforge.net)
|