[jboss-user] [JBossWS] - Cannot obtain wsdl service

schmil do-not-reply at jboss.com
Wed Apr 23 09:47:10 EDT 2008


Hi all,

since i upgraded my JBoss from 4.0.5 GA to 4.2.2 GA i have the following issue within my webservice.


  | 2008-04-23 13:59:43,171 ERROR [OrderServiceClient] Exception during Webservice call:
  | java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://localhost:8080/ina}DitaServiceHandlerService
  | 	at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
  | 	at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
  | 	at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
  | 	at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImpl.java:111)
  | 	at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
  | 	at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:142)
  | 	at OrderServiceClient.sendOrders(OrderServiceClient.java:160)
  | 

Are there any changes i forgot ?

Here is my code:

OrderServiceClient.java

  | import javax.xml.namespace.QName;
  | import javax.xml.rpc.Service;
  | import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
  | ...
  | ServiceFactoryImpl factory = new ServiceFactoryImpl();
  | URL wsdlURL = Thread.currentThread().getContextClassLoader().getResource("META-INF/service/DitaServiceHandler.xml");
  | URL mappingURL = Thread.currentThread().getContextClassLoader().getResource("META-INF/service/jaxrpc-mapping.xml");
  | QName qname = new QName("http://localhost:8080/ina", "DitaServiceHandlerService");
  | Service service = factory.createService(wsdlURL, qname, mappingURL);
  | 

DitaServiceHandler.xml

  | <wsdl:definitions targetNamespace="urn:ina:ws:dita:de"
  | xmlns:impl="urn:ina:ws:dita:de"
  | xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  | xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
  | xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  | ...
  | 
			
jaxrpc-mapping.xml

  |  <package-mapping>
  |   <package-type>ws.client</package-type>
  |   <namespaceURI>urn:ina:ws:dita:de</namespaceURI>
  |  </package-mapping>
  | ...
  | 	


Thanks in advance.
Lars

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146188#4146188

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146188



More information about the jboss-user mailing list