this might not be the right place to ask since its proabably because i dont understand how to invoke the webservice right but here i go anyway.
i want to talk to the amazon webservice
Code:<bean id="isbnService" class="dk.bytenbog.model.service.impl.AmazonISBNServiceImpl"> <property name="service"><ref="isbnServiceProxy"/></property> </bean> <bean id="isbnServiceProxy" class="org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactoryBean"> <property name="wsdlDocumentUrl"> <value>http://webservices.amazon.com/AWSECommerceService/UK/AWSECommerceService.wsdl</value> </property> <property name="namespaceUri"><value>http://webservices.amazon.com/AWSECommerceService/2004-10-19</value></property> <property name="serviceName"><value>AWSECommerceService</value></property> </bean> public class AmazonISBNServiceImpl implements ISBNService { private Service service; private String targetNamespace = "http://xml.amazon.com/AWSECommerceService/2004-08-01"; private QName operationName = new QName(targetNamespace, "ItemLookup"); public void setService(Service service) { this.service = service; } public Book getBook(String isbn) throws ISBNLookupException { Call call = (Call) this.service.createCall(); call.setOperationName(operationName); call.addParameter( "SubscriptionId", service.getServiceName(), ParameterMode.INOUT ); call.setReturnType( XMLType.XSD_STRING ); String s = (String )call.invoke( new Object[] {"XXXXXXXX"} ); }
shouldent this just return a string with the SubscriptionId that i send to it
i get a
aultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: No client transport named 'null' found!
if someone could point me in the right direction it would be verry helpfull.


Reply With Quote