Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
261 views
in Technique[技术] by (71.8m points)

Generate Java classes for SOAP request from wsdl

Is there a way to generate Java classes for a SOAP request message from a given WSDL? I tried with wsimport and wsdl2java but both didn't generate the request source.

Want I want to achive is to generate all this SOAP stuff especially with the correct structure of the SOAPElements.

    ...
    SOAPEnvelope envelope = soapPart.getEnvelope();     
    envelope.addNamespaceDeclaration(myNamespace, myNamespaceURI);
    SOAPBody soapBody = envelope.getBody();
    SOAPElement soapBodyElem = soapBody.addChildElement("Name", myNamespace);
    SOAPElement soapBodyElem1 = soapBodyElem.addChildElement("otherName", namespaceData);
    ....
question from:https://stackoverflow.com/questions/65843000/generate-java-classes-for-soap-request-from-wsdl

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...