camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siddharth Patil <siddharth.pa...@infrasofttech.com>
Subject SOAP request structure.
Date Thu, 16 Mar 2017 08:58:44 GMT
Hi,

I have a SOAP web service. I am trying to make SOAP request from WSDL.
Following is the structure that I am getting when I create the SOAP
service using the WSDL.

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.processing.dstawd.com/">
<soapenv:Header>
<ws:authorizationInfo>
<userId>HUBUSER</userId>
</ws:authorizationInfo>
</soapenv:Header>
<soapenv:Body>
<ws:createObjects>
<ws:createObjectRequest>
<responseDetails showNone="N"/>
<createWorkInstance relationshipId="work1" lock="N">
<businessArea>OSBLENDING</businessArea>
<type>WRESPONSE</type>
<status>CREATED</status>
<addManualComment>Created by HUB-First run</addManualComment>
<fieldValues>
<fieldValue name="OANO">841906</fieldValue>
<fieldValue name="PDID">ACCEPTANCE</fieldValue>
</fieldValues>
</createWorkInstance>
<createSourceInstance relationshipId="doc1" lock="N">
<businessArea>OSBLENDING</businessArea>
<type>ACCEPTANCE</type>
<attachmentList>
<attachment sequence="1">
<binaryData>cid:source1</binaryData>
</attachment>
</attachmentList>
</createSourceInstance>
<createSourceInstance relationshipId="doc2" lock="N">
<businessArea>OSBLENDING</businessArea>
<type>DECLARTION</type>
<attachmentList>
<attachment sequence="1">
<binaryData>cid:source2</binaryData>
</attachment>
</attachmentList>
</createSourceInstance>
<relationships>
<relateObjects parentRelationshipId="work1" childRelationshipId="doc1"/>
<relateObjects parentRelationshipId="work1" childRelationshipId="doc2"/>
</relationships>
</ws:createObjectRequest>
</ws:createObjects>
</soapenv:Body>
</soapenv:Envelope>


I am expecting the structure as shown below :

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.processing.dstawd.com/">
<soapenv:Header>
<ws:authorizationInfo>
<userId>HUBUSER</userId>
</ws:authorizationInfo>
</soapenv:Header>
<soapenv:Body>
<ws:createObjects>
<createObjectRequest>
<responseDetails showNone="N"/>
<createWorkInstance relationshipId="work1" lock="N">
<businessArea>OSBLENDING</businessArea>
<type>WRESPONSE</type>
<status>CREATED</status>
<addManualComment>Created by HUB-First run</addManualComment>
<fieldValues>
<fieldValue name="OANO">841906</fieldValue>
<fieldValue name="PDID">ACCEPTANCE</fieldValue>
</fieldValues>
</createWorkInstance>
<createSourceInstance relationshipId="doc1" lock="N">
<businessArea>OSBLENDING</businessArea>
<type>ACCEPTANCE</type>
<attachmentList>
<attachment sequence="1">
<binaryData>cid:source1</binaryData>
</attachment>
</attachmentList>
</createSourceInstance>
<createSourceInstance relationshipId="doc2" lock="N">
<businessArea>OSBLENDING</businessArea>
<type>DECLARTION</type>
<attachmentList>
<attachment sequence="1">
<binaryData>cid:source2</binaryData>
</attachment>
</attachmentList>
</createSourceInstance>
<relationships>
<relateObjects parentRelationshipId="work1" childRelationshipId="doc1"/>
<relateObjects parentRelationshipId="work1" childRelationshipId="doc2"/>
</relationships>
</createObjectRequest>
</ws:createObjects>
</soapenv:Body>
</soapenv:Envelope>



The tag that I have highlighted above in the request structure is
<ws:createObjectRequest> but I want it to be as <createObjectRequest>. I
am getting the "ws:" part in it which I want to eliminate.
Following is my endpoint structure.

@WebService (targetNamespace = "http://ws.processing.dstawd.com/")
@MTOM(enabled = true)
@SOAPBinding(style = Style.DOCUMENT)
public class AWDSoapEndpoint {

@WebMethod(operationName = "createObjects")
@WebResult(name="createObjectResponse",
targetNamespace="http://ws.processing.dstawd.com/",
partName="parameters")
public CreateObjectsResponse createObjects(
@WebParam(name = "createObjectRequest", targetNamespace =
"http://ws.processing.dstawd.com/",partName="http://ws.processing.dstawd.com/")
CreateObjectRequest input),
@WebParam(name = "authorizationInfo", targetNamespace =
"http://ws.processing.dstawd.com/",header=true,partName="http://ws.processing.dstawd.com/")
AuthorizationInfo authorizationInfo)
{
return null;
}
}


Regards,
Siddharth Patil









--
View this message in context: http://camel.465427.n5.nabble.com/SOAP-request-structure-tp5795566.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message