[JBossWS] - jws & visual b. soapsdk3.0, namespaces. JAXRPCException: Can
by delkant
jbossws and visual basic 6 soapsdk3.0, namespaces. JAXRPCException: Cannot find child element: String_1
hi,
i'm using the soapsdk webservices tool for visual 6, trying to consume a webservice described with jbossws. this WS is also tested by a junit module, so it is working.
when the packages are scaning in the network to see the soap message i get this.
from my visual b. client
|
| POST /eset/EsetContribuyenteWS HTTP/1.1
|
| SOAPAction: ""
|
| Content-Type: text/xml; charset="UTF-8"
|
| User-Agent: SOAP Toolkit 3.0
|
| Host: rdelcanto:8080
|
| Content-Length: 1420
|
| Connection: Keep-Alive
|
| Cache-Control: no-cache
|
| Pragma: no-cache
|
|
|
|
| <?xml version="1.0" encoding="UTF-8" standalone="no"?>
| <SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
| xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/"
| xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
| <SOAP-ENV:Body>
| <SOAPSDK4:save
| xmlns:SOAPSDK4="http://localhost/eset/py/ServiceWS">
|
|
| <SOAPSDK4:name>SFOB936890A</SOAPSDK4:name>
|
| <SOAPSDK4:key>33</SOAPSDK4:key>
| <SOAPSDK4:xml>
|
| (a valid xml)
|
|
| </SOAPSDK4:xml>
| <SOAPSDK4:nroHash>8a250892</SOAPSDK4:nroHash></SOAPSDK4:save></SOAP-ENV:Body>
| </SOAP-ENV:Envelope>
| HTTP/1.1 500 Internal Server Error
|
| Server: Apache-Coyote/1.1
|
| X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
|
| Set-Cookie: JSESSIONID=4941408F2755F3533A7050AD12C7B2C8; Path=/
|
| Content-Type: text/xml;charset=UTF-8
|
| Transfer-Encoding: chunked
|
| Date: Mon, 23 Oct 2006 22:33:51 GMT
|
| Connection: close
|
|
|
| 51
|
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header/>
|
|
| 2a
|
| <env:Body><env:Fault><faultcode>env:Client
|
|
| c
|
| </faultcode>
|
|
| 2f
|
| <faultstring>Cannot find child element: name
|
|
| e
|
| </faultstring>
|
|
| c
|
| </env:Fault>
|
|
| b
|
| </env:Body>
|
|
| f
|
| </env:Envelope>
|
|
| 0
|
|
|
|
i think the problem is in the SOAPSDK4 namespace.. because without that name everything works fine, the thing is that
i can't remove tha namespace becaus is generated by the soapsdk program from our friend Bill.
my wsdl
|
|
| <definitions name="ServiceWS" targetNamespace="http://localhost/eset/py/ServiceWS">
| <types/>
| ?
| <message name="ServiceWSEndPoint_save">
| <part name="name" type="xsd:string"/>
| <part name="key" type="xsd:string"/>
| <part name="xml" type="xsd:string"/>
| <part name="nroHash" type="xsd:string"/>
| </message>
| ?
| <message name="ServiceWSEndPoint_guardarDDJJResponse">
| <part name="result" type="xsd:string"/>
| </message>
| ?
| <portType name="ServiceWSEndPoint">
| ?
| <operation name="guardarDDJJ" parameterOrder="Usuario Clave xmlDDJJ nroHash">
| <input message="tns:ServiceWSEndPoint_save"/>
| <output message="tns:ServiceWSEndPoint_saveResponse"/>
| </operation>
| </portType>
| ?
| <binding name="ServiceWSEndPointBinding" type="tns:ServiceWSEndPoint">
| <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
| ?
| <operation name="save">
| <soap:operation soapAction=""/>
| ?
| <input>
| <soap:body namespace="http://localhost/eset/py/ServiceWS" use="literal"/>
| </input>
| ?
| <output>
| <soap:body namespace="http://localhost/eset/py/ServiceWS" use="literal"/>
| </output>
| </operation>
| </binding>
| ?
| <service name="ServiceWS">
| ?
| <port binding="tns:ServiceWSEndPointBinding" name="ServiceWSEndPointPort">
| <soap:address location="http://delkant:8080/eset/ServiceWS"/>
| </port>
| </service>
| </definitions>
|
|
so, the cuestion is, how i can solve this?.
i dont want to use visual but i have to.
will we have a version of jbossws with a support for this feauture?
thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980411#3980411
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980411
19 years, 6 months
[Security & JAAS/JBoss] - Re: EJB3 and remote client EJB access
by dhartford
so....
Also tried "org.jboss.security.jndi.JndiLoginInitialContextFactory" without the AppcallbackHandler
Properties env = new Properties();
| env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");
| env.put("java.naming.provider.url", "jbossserver:1099");
| env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
| env.setProperty(Context.SECURITY_PRINCIPAL, "username");
| env.setProperty(Context.SECURITY_CREDENTIALS, "password");
|
| InitialContext results = null;
| try{
| results = new InitialContext(env);
| }catch(Exception e){
| e.printStackTrace();
| }
|
And still getting
java.io.NotSerializableException: com.sun.jndi.ldap.LdapCtx
Is this the wrong forum or am I just doing something really wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980410#3980410
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980410
19 years, 6 months
[JBoss Seam] - Re: Trinidad example uploaded to wiki
by baz
Hello,
the uploaded trinidad example is just the adf example (also found at the wiki) converted to trinidad. I must state that i am not the author of the adf example.
The uploaded example works for me on JBoss AS 4.0.4GA and on JBoss 4.0.5GA
Yes, the mentioned warning is rendered, but the button works (in Firefox 2.0RC3 and in IE6)
The button does not work with opera 9.02. I have filed an issue to the trinidad issue tracker about that.
As of now, i renamed the example to registrationtrinidad and i will put in the official snapshot librarys of trinidad.
And i plan to use the newest registration example of seam as a template. After this is done i reupload the example.
Could you tell us, which browser you are using and to which browser you are deploying?
Ciao,
Carsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980404#3980404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980404
19 years, 6 months
[JBossWS] - Can't get wstools to work for multiple endpoints in JBossWS
by dmitri_furman
Hello,
I am trying to deploy multiple session ejb's as webservices. As of JBoss 1.0.3 new append flag was added to configuration:
<webservices ejb-link="BenefitsValidationService" append="true"/>
While using this flag webservices.xml is not overwritten which is exactly the behavior that I need. However, the name space is only specified for the first service. While deploying this webservice JBoss throws exception complaining about not being able to find elements in the namespace specified. Below are the configuration files that I use and the webservices.xml file that gets produced.
If anyone knows of the workaround for this issue I would really appreciate hearing about it. Thank you.
Address Validation (1st service) configuration:
<java-wsdl>
<namespaces target-namespace="http://edv.etenet.com/AddressValidationService"
type-namespace="http://edv.etenet.com/AddressValidationService/types"/>
<webservices ejb-link="AddressValidationService" append="true"/>
</java-wsdl>
BenefitsValidation (2nd service) configuration:
<java-wsdl>
<namespaces target-namespace="http://edv.etenet.com/BenefitsValidationService"
type-namespace="http://edv.etenet.com/BenefitsValidationService/types"/>
<webservices ejb-link="BenefitsValidationService" append="true"/>
</java-wsdl>
Resulting webservices.xml file. Please note xmlns:impl='http://edv.etenet.com/AddressValidationService' specified. JBoss Assumes that it can find BenefitsValidationService also in xmlns:impl. Wstools does not create a different namespace:
<webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:impl='http://edv.etenet.com/AddressValidationService' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
<webservice-description>
<webservice-description-name>AddressValidationService</webservice-description-name>
<wsdl-file>META-INF/wsdl/AddressValidationService.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/AddressValidationService-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>AddressValidationServiceSEIPort</port-component-name>
<wsdl-port>impl:AddressValidationServiceSEIPort</wsdl-port>
<service-endpoint-interface>com.psc.edv.avs.ejb.AddressValidationServiceSEI</service-endpoint-interface>
<service-impl-bean>
<ejb-link>AddressValidationService</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
<webservice-description>
<webservice-description-name>BenefitsValidationService</webservice-description-name>
<wsdl-file>META-INF/wsdl/BenefitsValidationService.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/BenefitsValidationService-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>BenefitsValidationServiceSEIPort</port-component-name>
<wsdl-port>impl:BenefitsValidationServiceSEIPort</wsdl-port>
<service-endpoint-interface>com.psc.edv.bvs.ejb.BenefitsValidationServiceSEI</service-endpoint-interface>
<service-impl-bean>
<ejb-link>BenefitsValidationService</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980401#3980401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980401
19 years, 6 months