Am Montag, den 12.11.2007, 06:54 -0800 schrieb JoCosti: > Thanks Glenn for the quick and developed answer, I do appreciate a lot > since > I'm a newbie concerning web services and particularly jax-ws. > > Concerning your remarks : > > 1) I think it's doc/literal, here's a part of binding section > > <wsdl:binding name="StructureServicesSoap" > type="tns:StructureServicesSoap"> > <soap:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document" /> > <wsdl:operation name="GetMailAddress"> > <soap:operation > soapAction="http://anpe.fr/DirectoryServices/GetMailAddress" > style="document" /> > <wsdl:input> > <soap:body use="literal" /> > <soap:header > message="tns:GetMailAddressStructureMailAddressHeader" > part="StructureMailAddressHeader" > use="literal" /> > </wsdl:input> > <wsdl:output> > <soap:body use="literal" /> > <soap:header > message="tns:GetMailAddressStructureMailAddressHeader" > part="StructureMailAddressHeader" > use="literal" /> > </wsdl:output> > </wsdl:operation> > > Can you confirm that it should be possible to consume this web service > with > a jax-ws client ?
Yes, looks like doc-lit to me. You should be fine. > I have uploaded the complete wsdl (hope you can have a look at it, it's the > first time I'm using the upload facility in this mailing list). > Sorry, I don't have the time right now. > For 2) I need to have a look at your work, I'm using maven2 to > generate my > web service client, I hope I can use your approach with maven. > You're ahead of me then--I only use Maven for CXF code and a small webapp I'm building. Still, you should be able to understand Ant. > > One last thing, in my wsdl, I have the same name (StructureServicesSoap) for > a port and a binding, is that correct ? > You can, but it makes things confusing. If you follow the nomenclature given in part #2 of my notes (which came from a Metro sample), it makes understanding the artifacts generated (in particular, mapping the artifacts to their counterpart in the WSDL) much simpler: http://www.jroller.com/gmazza/date/20071019#notes Regards, Glen
