Problem with RPC / Encoded Jboss

I am running jboss-4.2.1.GA to generate WS requests.

I created a WS client using JWSDP-2.0 / JAXRPC. I deployed the client to Jboss, and now I'm trying to send requests.

When I try to initialize the customer service: javax.xml.rpc.Service service = servicefactory.createService(new URL(wsdlURL), serviceQN)Jboss starts complaining.

The error that Jboss generates is:

ERROR [JBossXSErrorHandler] JBossWS_targetnamespace1.com7796329154971783225.xsd [domain: http://www.w3.org/TR/xml-schema-1†::►key=src-resolve.4.2†::Message=src-resolve.4.2 : Error recovery component 'Tns2: SimpleSerialiser. it was discovered that 'tns2: SimpleSerialiser' is in the namespace ' http://targetnamespace2.com', but the components from this namespace are not referenced from the schema document' File: /home/jbossPath/jboss-4.2.1.GA/server/default/tmp/jbossws/JBossWS_targetnamespace1.com7796329154971783225.xsd. If this is the wrong namespace, perhaps the prefix 'tns2: SimpleSerialiser' should be changed. If this is the correct namespace, then the corresponding 'import' tag should be added to. File: /home/jbossPath/mobaq/jboss-4.2.1.GA/server/default/tmp/jbossws/JBossWS_targetnamespace1.com7796329154971783225.xsd

The following warning:

WARN [WSDL11Reader] The encoding style ' http://schemas.xmlsoap.org/soap/encoding/ ' is not supported for: {Urn: Namespace} Complete the task

Finally, the following error is displayed:

[STDERR] org.jboss.ws.WSException: java : {: } ArrayOf_tns2_TagType [STDERR] org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildInputParameter(JAXRPCMetaDataBuilder.java:266)     ...     ...

, community.jboss.org , . , , , .

, - : JAX-RPC JBoss 4.2.3, .

, JbossWS RPC/Encoded, jboss . , Jboss ? , RPC/Literal WSDL , .

.

+3
2

, , , , JAX-RPC JBoss 4.2.3 post:

chase, JAR Axis 1.4 EAR lib: axis.jar, axit- ant.jar, commons-discovery-0.2.jar, jaxrpc.jar, saaj.jar, wsdl4j-1.5.1.jar

, , , WS Client . , , . , .

.

0

http://schemas.xmlsoap.org/soap/encoding/ - , - ( , Microsoft ). WS-I, - Java.

java, , , Axis 1, , . Axis JBoss.

+1

Source: https://habr.com/ru/post/1729110/


All Articles