more grief with WSIF and complex types
"Luca Baldi" <[email protected]>
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <ABC231AADE3CE44495F858C2A7782519152872@MANEXCHANGE.i-documentsystems.com> |
Here's my code
Service serviceWsdl = WSIFUtils.selectService(def,
"http://ws.cdyne.com", "Zip2Geo");
WSIFService service = factory.getService(wsdl, "http://ws.cdyne.com",
"Zip2Geo", "http://ws.cdyne.com", "Zip2GeoSoap");
service.mapType(new QName("http://ws.cdyne.com", "LatLongReturn"),
Class.forName("com.cdyne.ws.LatLongReturn"));
WSIFPort port = service.getPort();
WSIFOperation op = port.createOperation(opName);
WSIFMessage input = op.createInputMessage();
input.setObjectPart("zipcode", "M201EF");
input.setObjectPart("LicenseKey", "");
WSIFMessage output = op.createOutputMessage();
WSIFMessage fault = op.createFaultMessage();
op.executeRequestResponseOperation(input, output, fault);
All I get is
org.apache.wsif.WSIFException: no schema elements found
at
org.apache.wsif.providers.ProviderUtils.unWrapPart(ProviderUtils.java:39
3)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.unwra
pSOAPParts(WSIFOperation_ApacheAxis.java:812)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.prepa
re(WSIFOperation_ApacheAxis.java:1941)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invok
eRequestResponseOperation(WSIFOperation_ApacheAxis.java:1412)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.execu
teRequestResponseOperation(WSIFOperation_ApacheAxis.java:1019)
at com.webservice.Main.main(Main.java:155)
anybody any idea why this is happening ??
thanks
luca