[JBossWS] - DateTime Format errors
by mmiddleton
I am currently working with a customer with a webservice. I wrote the webservice using jbossws in java and the client the are writing is in vb.
Here is our problem:
They want to be notified if they send a date that is invalid. As it is right now by the time their request gets to my code if they send in an invalid DateTime that value is "null" in the java object that I receive, this is the same thing I get if they don't send in a date (it's not a required field), because of this there is no way for me to tell if they simply did not send in a date or if they sent in an invalid date. I was wondering if there was a way for the user to be notified if they send in an invalid date or is that something that we will have to catch in the client before the xml request is sent to the webservice, or is there away for the exception (assuming one occurs if an invalid date is sent in) to be passed along to my code for me to handle it. Thanks in advance for your replies.
Matthew
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115503#4115503
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115503
16 years, 12 months
[JBossWS] - Error in implementing web-service given in JBoss Messaging
by Neha2911
When im running my jboss messaging web-service example i encounter following error.
Im using
Java Version : JDK1.5 ,
JBoss Version : jboss-4.2.2.GA
Jboss Messaging : jboss-messaging-1.4.0.SP1.
My other examples such as queue n mdb are running fine.
| #######
| [echo] The queue: testQueue
| [echo] The client jar: ../..//jboss-messaging-client.jar
|
| sanity-check:
|
| init:
|
| compile:
|
| war:
|
| deploy:
|
| sleep:
| [echo] Sleeping for 10 seconds ...
|
| run-wsdl-client:
| [get] Getting: http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?
| wsdl
| [get] To: C:\jboss-messaging-1.4.0.SP1\examples\web-service\output\service
| .wsdl
| [wstools] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: file:/C:/jbo
| ss-messaging-1.4.0.SP1/examples/web-service/./output/service.wsdl
| [wstools] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class org.j
| boss.wsf.spi.management.ServerConfigFactory'
| [wstools] DEBUG [main] (JavaToXSD.java:175) - Load schema: http://endpoint.web
| services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JB...
| ndpoint.webservices.jms.example.jboss.org_24007.xsd
| [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=n
| ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
| s.example.jboss.org_24007.xsd]
| [wstools] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=h
| ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - Typemapping loo
| kup failed for null
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling back to
| identifier generation
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:876) - Typemapping loo
| kup failed for null
| [wstools] DEBUG [main] (MappingFileGeneratorHelper.java:877) - Falling back to
| identifier generation
|
| compile-client:
| [javac] Compiling 4 source files to C:\jboss-messaging-1.4.0.SP1\examples\we
| b-service\output\client-classes
|
| run:
|
| send-and-receive:
| [java] DEBUG [main] (JAXRPCClientMetaDataBuilder.java:103) - START buildMet
| aData: [service={http://endpoint.webservices.jms.example.jboss.org/}JMSSampleSer
| vice]
| [java] DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: http://127.0
| .0.1:8080/jms-web-service/JMSWebServiceExample?wsdl
| [java] DEBUG [main] (DefaultSPIProvider.java:68) - provide SPI 'class org.j
| boss.wsf.spi.management.ServerConfigFactory'
| [java] DEBUG [main] (JavaToXSD.java:175) - Load schema: http://endpoint.web
| services.jms.example.jboss.org/=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JB...
| ndpoint.webservices.jms.example.jboss.org_35128.xsd
| [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=n
| ull,sysid=file:/C:/DOCUME~1/282154/LOCALS~1/Temp/JBossWS_endpoint.webservices.jm
| s.example.jboss.org_35128.xsd]
| [java] DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=h
| ttp://schemas.xmlsoap.org/soap/encoding/,sysid=null]
| [java] java.lang.IllegalArgumentException: Cannot obtain wsdl service: {htt
| p://endpoint.webservices.jms.example.jboss.org/}JMSSampleService
| [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
| der.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
| [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
| der.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
| [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil
| der.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
| [java] at org.jboss.ws.core.jaxrpc.client.ServiceImpl.<init>(ServiceImp
| l.java:111)
| [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
| ice(ServiceFactoryImpl.java:157)
| [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ
| ice(ServiceFactoryImpl.java:142)
| [java] at org.jboss.example.jms.webservices.client.Client.sendMessage(C
| lient.java:75)
| [java] at org.jboss.example.jms.webservices.client.Client.example(Clien
| t.java:58)
| [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
| t.java:161)
| [java] at org.jboss.example.jms.webservices.client.Client.main(Client.j
| ava:117)
| [java]
| [java] #####################
| [java] ### FAILURE! ###
| [java] #####################
|
| BUILD FAILED
| C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:157: The following e
| rror occurred while executing this line:
| C:\jboss-messaging-1.4.0.SP1\examples\web-service\build.xml:166: Java returned:
| 1
|
| Total time: 14 seconds
| C:\jboss-messaging-1.4.0.SP1\examples\web-service>
|
|
please anyone of u can tell me what is the problem
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115442#4115442
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115442
17 years