[JBossWS] - Cannot obtain wsdl service
by schmil
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
16 years, 8 months
[JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ?
by ljgp
Hi,
> The question about where the annotation is tested remains.
And still remains...maybe I should repeat what the question was, so people do'nt have to search for it by looking through all previous posts.
The question was:
I am probably overlooking something, because I cannot find a proper test for the @SchemaValidation annotation.
There are two endpoint classes, org.jboss.test.ws.jaxws.jbws1172.ValidatingEndpoint.java and NonValidatingEndpoint.java
The annotation processor processes the @SchemaValidation annotation by adding the relevant feature to the endpoint.
However, in JBWS1172TestCase.java, the testcases ignore the defined endpoints, and instead add the validating feature to endpoints defined in the testcode. So, to me it seems the handling of the @SchemaValidation annotation is not tested here. Is there another test for this maybe ?
If I cannot get this to work, I am considering switching to the metro implementation, which should have support for this (added november last year I think).
Cheers, Luc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146132#4146132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146132
16 years, 8 months