[JBossWS] - Double ws request using jbossws client
by AgainC
Hi all,
I have a problem using WebServices proxy clients generated with wsconsume. Looks the the exposed ws is called 3 times 1 to download the wsdl(OK) and 2 consecutive calls to the the exposed method.
the implemented code it's right as you can see following:
URL webServiceURL = null;
Vector beanList = null;
ConfigurationWrapper conf = ConfigurationWrapper.getInstance();
try {
webServiceURL = new URL(conf.getVehicleCountServiceEndPoint());
}
catch (MalformedURLException e) {
e.printStackTrace();
log(e);
}
ObjectFactory of = new ObjectFactory();
GetCountProxyService service = new GetCountProxyService(webServiceURL, new QName("http://www.infomobility.com/IB", "getCountProxyService"));
try {
GetCountProxyPortType port = service.getGetCountProxyPort();
GetCountProxyReq req = of.createGetCountProxyReq();
req.setHEADER(beanHeader);
req.setCUSTOMER(beanBodyCustomer);
req.setSERVICE(beanBodyService);
GetCountProxyRes result = port.getCountProxy(req);
logger.info("############# STA WA CALL IB VehicleCount "+System.currentTimeMillis()+" #############");
result = port.getCountProxy(req);
logger.info("############# END WA CALL IB VehicleCount "+System.currentTimeMillis()+" #############");
if (null != result) {
beanBodyResult = result.getMESSAGERESULT();
beanHeaderResult = result.getHEADER();
beanIndexResult = result.getINDEX();
beanList = new Vector();
beanList.add(beanHeaderResult);
beanList.add(beanBodyResult);
beanList.add(beanIndexResult);
}
}
catch (Exception e) {
error("", e);
}
return beanList;
The logs that you can see in the code are printed just 1 time a call in the log files.
the Log:
2008-09-15 11:16:23,864 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=utf-8]
2008-09-15 11:16:23,866 DEBUG [org.jboss.remoting.InvokerRegistry] removed org.jboss.remoting.transport.http.HTTPClientInvoker@7b28dc from registry
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.jaxws.handler.MessageContextJAXWS] Begin response processing
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@42058f (Thread ajp-10.35.67.68-8009-2)
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@17accc9 (Thread ajp-10.35.67.68-8009-2)
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] unbindResponseMessage: {http://www.infomobility.com/IB}getCountProxy
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.EndpointInvocation] setReturnValue: org.jboss.ws.core.soap.SOAPBodyElementDoc
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.CommonClient] Handler modified body payload, unbind message again
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] unbindResponseMessage: {http://www.infomobility.com/IB}getCountProxy
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.EndpointInvocation] setReturnValue: org.jboss.ws.core.soap.SOAPBodyElementDoc
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.EndpointInvocation] getReturnValue
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from XML_VALID to OBJECT_VALID
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.soap.XMLContent] getObjectValue [xmlType={http://www.infomobility.com/IB}>getCountProxy_Res,javaType=class it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyRes]
2008-09-15 11:16:23,866 DEBUG [org.jboss.ws.core.jaxws.JAXBDeserializer] deserialize: [xmlName={http://www.infomobility.com/IB}getCountProxy_Res,xmlType={http:/...>getCountProxy_Res]
2008-09-15 11:16:23,901 DEBUG [org.jboss.ws.core.jaxws.JAXBDeserializer] deserialized: it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyRes
2008-09-15 11:16:23,901 DEBUG [org.jboss.ws.core.soap.XMLContent] objectValue: it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyRes
2008-09-15 11:16:23,901 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
2008-09-15 11:16:23,901 DEBUG [org.jboss.ws.core.EndpointInvocation] transformPayloadValue: org.jboss.ws.core.soap.SOAPBodyElementDoc -> it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyRes
2008-09-15 11:16:23,901 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close
2008-09-15 11:16:23,901 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close
2008-09-15 11:16:23,901 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close
2008-09-15 11:16:23,902 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@17accc9 (Thread ajp-10.35.67.68-8009-2)
2008-09-15 11:16:23,902 INFO [it.telecomitalia.vt.wa.log.GenericLogInterface] ############# STA WA CALL IB VehicleCount 1221470183902 #############
2008-09-15 11:16:23,903 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@c3455c (Thread ajp-10.35.67.68-8009-2)
2008-09-15 11:16:23,903 DEBUG [org.jboss.ws.core.EndpointInvocation] setRequestParamValue: [name={http://www.infomobility.com/IB}getCountProxy_Req,value=it.telecomit...]
2008-09-15 11:16:23,903 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] bindRequestMessage: {http://www.infomobility.com/IB}getCountProxy
2008-09-15 11:16:23,904 DEBUG [org.jboss.ws.core.EndpointInvocation] getRequestParamValue: {http://www.infomobility.com/IB}getCountProxy_Req
2008-09-15 11:16:23,904 DEBUG [org.jboss.ws.core.EndpointInvocation] transformPayloadValue: it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyReq -> it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyReq
2008-09-15 11:16:23,904 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: []
2008-09-15 11:16:23,904 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: []
2008-09-15 11:16:23,904 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: []
2008-09-15 11:16:23,904 DEBUG [org.jboss.ws.core.client.RemotingConnectionImpl] Get locator for: [addr=http://ip-fe-alsb-ms-01-1:8101/getCountProxy,props={javax.xml.ws.service.endpoint.address=http://ip-fe-alsb-ms-01-1:8101/getCountProxy}]
2008-09-15 11:16:23,904 DEBUG [org.jboss.remoting.MicroRemoteClientInvoker] org.jboss.remoting.transport.http.HTTPClientInvoker@1feaee5 connecting
2008-09-15 11:16:23,904 DEBUG [org.jboss.remoting.MicroRemoteClientInvoker] org.jboss.remoting.transport.http.HTTPClientInvoker@1feaee5 connected
2008-09-15 11:16:23,904 DEBUG [org.jboss.ws.core.client.RemotingConnectionImpl] Remoting metadata: {HEADER={SOAPAction="soapgetCountProxy", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true}
2008-09-15 11:16:23,905 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Setting request header with SOAPAction : "soapgetCountProxy"
2008-09-15 11:16:23,905 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Setting request header with Content-Type : text/xml; charset=UTF-8
2008-09-15 11:16:23,905 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
2008-09-15 11:16:23,905 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from OBJECT_VALID to XML_VALID
2008-09-15 11:16:23,905 DEBUG [org.jboss.ws.core.soap.ObjectContent] getXMLFragment from Object [xmlType={http://www.infomobility.com/IB}>getCountProxy_Req,javaType=class it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyReq]
2008-09-15 11:16:23,905 DEBUG [org.jboss.ws.core.jaxws.JAXBSerializer] serialize: [xmlName={http://www.infomobility.com/IB}getCountProxy_Req,xmlType={http:/...>getCountProxy_Req]
2008-09-15 11:16:23,906 DEBUG [org.jboss.ws.core.jaxws.JAXBSerializer] serialized: <getCountProxy_Req xmlns="http://www.infomobility.com/IB"><T_SYS>WA</T_SYS><R_SYS>IB</R_SYS><ID_CUSTOMER>85</ID_CUSTOMER><ID_SERVICE>VTT</ID_SERVICE></getCountProxy_Req>
2008-09-15 11:16:23,906 DEBUG [org.jboss.ws.core.soap.ObjectContent] xmlFragment: [source=<getCountProxy_Req xmlns="http://www.infomobility.com/IB"><T_SYS>WA</T_SYS><R_SYS>IB</R_SYS><ID_CUSTOMER>85</ID_CUSTOMER><ID_SERVICE>VTT</ID_SERVICE></getCountProxy_Req>]
2008-09-15 11:16:23,906 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
2008-09-15 11:16:25,628 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Mon, 15 Sep 2008 11:16:25>
2008-09-15 11:16:25,628 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
2008-09-15 11:16:25,629 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
2008-09-15 11:16:25,629 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
2008-09-15 11:16:35,639 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Mon, 15 Sep 2008 11:16:35>
2008-09-15 11:16:35,639 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
2008-09-15 11:16:35,639 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2008-09-15 11:16:35,639 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
2008-09-15 11:17:19,736 DEBUG [org.jboss.ws.core.soap.SOAPMessageUnMarshaller] getMimeHeaders from: {X-Powered-By=[Servlet/2.4 JSP/2.0], Content-Length=[1114], ResponseCodeMessage=OK, Date=[Mon, 15 Sep 2008 09:16:30 GMT], Content-Type=[text/xml; charset=utf-8], HEADER={SOAPAction="soapgetCountProxy", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true, ResponseCode=200}
2008-09-15 11:17:19,738 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=utf-8]
2008-09-15 11:17:19,739 DEBUG [org.jboss.remoting.InvokerRegistry] removed org.jboss.remoting.transport.http.HTTPClientInvoker@1feaee5 from registry
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.jaxws.handler.MessageContextJAXWS] Begin response processing
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@c3455c (Thread ajp-10.35.67.68-8009-2)
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@18c6c98 (Thread ajp-10.35.67.68-8009-2)
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] unbindResponseMessage: {http://www.infomobility.com/IB}getCountProxy
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.EndpointInvocation] setReturnValue: org.jboss.ws.core.soap.SOAPBodyElementDoc
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.CommonClient] Handler modified body payload, unbind message again
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] unbindResponseMessage: {http://www.infomobility.com/IB}getCountProxy
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.EndpointInvocation] setReturnValue: org.jboss.ws.core.soap.SOAPBodyElementDoc
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.EndpointInvocation] getReturnValue
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from XML_VALID to OBJECT_VALID
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.soap.XMLContent] getObjectValue [xmlType={http://www.infomobility.com/IB}>getCountProxy_Res,javaType=class it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyRes]
2008-09-15 11:17:19,740 DEBUG [org.jboss.ws.core.jaxws.JAXBDeserializer] deserialize: [xmlName={http://www.infomobility.com/IB}getCountProxy_Res,xmlType={http:/...>getCountProxy_Res]
2008-09-15 11:17:19,741 DEBUG [org.jboss.ws.core.jaxws.JAXBDeserializer] deserialized: it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyRes
2008-09-15 11:17:19,741 DEBUG [org.jboss.ws.core.soap.XMLContent] objectValue: it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyRes
2008-09-15 11:17:19,741 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] -----------------------------------
2008-09-15 11:17:19,741 DEBUG [org.jboss.ws.core.EndpointInvocation] transformPayloadValue: org.jboss.ws.core.soap.SOAPBodyElementDoc -> it.telecomitalia.vt.wa.ws.proxyclient.vehiclecount.GetCountProxyRes
2008-09-15 11:17:19,741 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close
2008-09-15 11:17:19,741 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close
2008-09-15 11:17:19,741 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close
2008-09-15 11:17:19,742 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@18c6c98 (Thread ajp-10.35.67.68-8009-2)
2008-09-15 11:17:19,742 INFO [it.telecomitalia.vt.wa.log.GenericLogInterface] ############# END WA CALL IB VehicleCount 1221470239742 #############
2008-09-15 11:17:19,743 INFO [it.telecomitalia.vt.wa.action.common.CommonAbstractAction] ############################## END IB CALL VehicleCount 1221470239743 ##############################
I accept any ideas.
Thanks.
Carlo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176452#4176452
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176452
16 years, 3 months
[JBossWS] - Validation of XSD (minLength, maxLength and pattern)
by JBossWS_NewBee
I have a WSDL operation which is based on a XML schema with the following info:
<xs:element name="CheckInDate">
<xs:annotation>
<xs:documentation>CheckInDate: YYMMDD</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="6"/>
<xs:pattern value="\d\d\d\d\d\d"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FolioID">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="25"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Couple of questions around this schema:
1. Does JBossWS framework understand the xml schema constraints of xs:minLength, xs:maxLength and xs:pattern, if specified?
2. What kind of error (Soap or otherwise) does the JBossWS framework throw or report to the WS-Client, if minLength, maxLength and pattern constraints are violated.?
3. If not, do I need to do a validation around these constraints in my code and throw a wsdl 'validation error' fault.
Thanks in Advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176196#4176196
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176196
16 years, 3 months
[JBossWS] - org.jboss.ws.WSException: Cannot find port in wsdl:
by sr_ren
I am using standard WSDL packaged with jaxws-ri AddNumbers.wsdl. I am following wsdl first approach to design my Java implementation. I followed the steps given in
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104843
I was able to make Echo service work fine, however I could not do AddNumbers which is as given below
<?xml version="1.0" encoding="UTF-8"?>
|
| <definitions name="AddNumbers" targetNamespace="http://duke.example.org" xmlns:tns="http://duke.example.org"
| xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
| <types>
| <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://duke.example.org">
|
| <complexType name="addNumbersResponse">
| <sequence>
| <element name="return" type="xsd:int" />
| </sequence>
| </complexType>
| <element name="addNumbersResponse" type="tns:addNumbersResponse" />
|
| <complexType name="addNumbers">
| <sequence>
| <element name="arg0" type="xsd:int" />
| <element name="arg1" type="xsd:int" />
| </sequence>
| </complexType>
| <element name="addNumbers" type="tns:addNumbers" />
|
| <element name="AddNumbersFault" type="tns:AddNumbersFault" />
| <complexType name="AddNumbersFault">
| <sequence>
| <element name="faultInfo" type="xsd:string" />
| <element name="message" type="xsd:string" />
| </sequence>
| </complexType>
| </xsd:schema>
| </types>
| <message name="addNumbers">
| <part name="parameters" element="tns:addNumbers" />
| </message>
| <message name="addNumbersResponse">
| <part name="result" element="tns:addNumbersResponse" />
| </message>
| <message name="addNumbersFault">
| <part name="AddNumbersFault" element="tns:AddNumbersFault" />
| </message>
| <portType name="AddNumbersPortType">
| <operation name="addNumbers">
| <input message="tns:addNumbers" />
| <output message="tns:addNumbersResponse" />
| <fault name="addNumbersFault" message="tns:addNumbersFault"/>
| </operation>
| </portType>
| <binding name="AddNumbersBinding" type="tns:AddNumbersPortType">
| <soap:binding transport="http://www.w3.org/2003/05/soap/bindings/HTTP/" style="document" />
| <operation name="addNumbers">
| <soap:operation soapAction="" />
| <input>
| <soap:body use="literal" />
| </input>
| <output>
| <soap:body use="literal" />
| </output>
| <fault name="addNumbersFault">
| <soap:fault name="addNumbersFault" use="literal" />
| </fault>
| </operation>
| </binding>
| <service name="AddNumbersService">
| <port name="AddNumbersPort" binding="tns:AddNumbersBinding">
| <soap:address location="http://localhost:8080/AddNumbers" />
| </port>
| </service>
| </definitions>
I ran wsconsume on this and wrote my impl class AddNumbersImp.java
@javax.jws.WebService(endpointInterface="org.example.duke.AddNumbersPortType", portName="AddNumbersPort")
public class AddNumbersImpl implements AddNumbersPortType {
public int addNumbers(int arg0, int arg1)throws AddNumbersFault_Exception
{
return 10;
}
}
After building AddNumbers.war file at deployment time I get the following error
15:27:46,185 INFO [DefaultEndpointRegistry] register: jboss.ws:context=AddNumbers,endpoint=AddNumbers
15:27:46,200 INFO [TomcatDeployer] deploy, ctxPath=/AddNumbers, warUrl=.../tmp/deploy/tmp53972AddNumbers-exp.war/
15:27:46,482 WARN [PolicyMetaDataBuilder] Cannot get service '{http://duke.example.org/}AddNumbersImplService' from the given wsdl definitions! Eventual policies attached to this service won't be considered.
15:27:46,560 ERROR [MainDeployer] Could not start deployment: file:/C:/Program Files/JBoss/server/default/deploy/AddNumbers.war
org.jboss.ws.WSException: Cannot find port in wsdl: {http://duke.example.org/}AddNumbersPort
at org.jboss.ws.metadata.builder.MetaDataBuilder.replaceAddressLocation(MetaDataBuilder.java:338)
at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:192)
at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:63)
at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(UnifiedMetaDataDeploymentAspect.java:66)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(Unknown Source)
at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy45.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
I tried several ways to tweak the PortName, but I don't have any success. Appreciate any help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175997#4175997
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175997
16 years, 3 months
[JBossWS] - Re: Validation of input
by JBossWS_NewBee
I had a similar question:
I have a WSDL operation which is based on a XML schema with the following info:
<xs:element name="CheckInDate">
<xs:annotation>
<xs:documentation>CheckInDate: YYMMDD</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="6"/>
<xs:pattern value="\d\d\d\d\d\d"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FolioID">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="25"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Couple of questions around this schema:
1. Does JBossWS framework understand the xml schema constraints of xs:minLength, xs:maxLength and xs:pattern, if specified?
2. What kind of error (Soap or otherwise) does the JBossWS framework throw or report to the WS-Client, if minLength, maxLength and pattern constraints are violated.?
3. If not, do I need to do a validation around these constraints in my code and throw a wsdl 'validation error' fault.
Thanks in Advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175988#4175988
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175988
16 years, 3 months