Need WSDL URL for updateObject specific to list update (9.3.5)
I am trying to update list value in part using web services method update Object
-> url:http://domainname:7001/CoreService/services/BusinessObject
BY using abobe url i am posting below soap envolop.
<soapenv:Envelope >
<soapenv:Body>
<updateObject>
<request>
<requests>
<classIdentifier>Part </classIdentifier>
<objectNumber>P00001</objectNumber>
<data rowId=”0″>
<Size xsi_type=”AgileListEntryType” attributeId=”1068″>
<selection>
<id/>
<apiName/>
<value>Buy</value>
</selection>
</Size>
</data>
</requests>
</request>
</updateObject>
</soapenv:Body>
</soapenv:Envelope>
But Its not supporting.Please help me how can i upadate list values in agile plm.
Please provide me is there any supporting WSDL for above soap.
Thanks in Advance……………………….
Dinesh,
I took the code I use for this in SOAP UI, but replaced with your parameters. NOTE: I use Agile 9.3.2, but I’m hoping this works for you all the same. Please try the following:
<soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/”>
<soapenv:Body xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>
<updateObject xmlns=”http://xmlns.oracle.com/AgileObjects/Core/Business/V1″>
<request xmlns=””>
<requests><classIdentifier>Part</classIdentifier><objectNumber>P00001</objectNumber><data><DOCSIZE xsi:type=”AgileListEntryType” attributeId=”1068″ xmlns:xsi=”http://xmlns.oracle.com/AgileObjects/Core/Common/V1″><selection><value>Buy</value></selection></DOCSIZE></data></requests>
</request>
</updateObject>
</soapenv:Body>
</soapenv:Envelope>
Hi Prasaath,
Thanks for your quick reply…..
Below is my xml response.
<S:Envelope >
<S:Body>
<ns0:updateObjectResponse >
<response>
<messageId xsi_nil=”true” />
<messageName xsi_nil=”true” />
<statusCode>FAILURE</statusCode>
<exceptions>
<id>0</id>
<exception>
<identifier>
<id>6164786</id>
<name>Part</name>
<displayName>P00001</displayName>
</identifier>
<exceptionId>60086</exceptionId>
<message xsi_nil=”true” />
<cause xsi_nil=”true” />
</exception>
</exceptions>
</response>
</ns0:updateObjectResponse>
</S:Body>
</S:Envelope>
Please help me how can i resolve this…
Thanks in Advance…………………………
I am not sure what could be the reason may be problem with the attributeid value which you had given. Can you check whether that is the baseid of that attribute. I write java programs using stub. Do you use java stub ? if so then you can try the below sample code and get the xml.. this will tell a detailed error message
AgileRowType updaterows = new AgileRowType();
UpdateObjectRequestType updateObjectRequestType = new UpdateObjectRequestType();
AgileUpdateObjectRequest agileUpdateObjectRequest[] = new AgileUpdateObjectRequest[1];
agileUpdateObjectRequest[0] = new AgileUpdateObjectRequest();
agileUpdateObjectRequest[0].setClassIdentifier(“Part”);
agileUpdateObjectRequest[0].setObjectNumber(number);
AgileListEntryType List = new AgileListEntryType();
SelectionType[] listType = new SelectionType[1];
listType[0] = new SelectionType();
listType[0].setValue(“listvalue”);
List.setSelection(listType);
MessageElement messages_cat = new MessageElement(namespaceUri, “ATTRIBUTE_NAME”);
messages_cat.addAttribute(namespaceUri, SchemaConstants.attributeId.getValue(), “BASEID”);
messages_cat.addAttribute(XSIPREFIX, COMMONNAMESPACEURI, SchemaConstants.type.getValue(), “AgileListEntryType”);
messages_cat.setObjectValue(List);
updaterows.set_any(allMessages);
agileUpdateObjectRequest[0].setData(updaterows);
updateObjectRequestType.setRequests(agileUpdateObjectRequest);
UpdateObjectResponseType updateObjectResponseType = stub.updateObject(updateObjectRequestType);
I am not using java stub.But i am trying now to use java stub.
When i run in SOAP UI i am getting below response.
<S:Envelope >
<S:Body>
<ns0:Fault >
<faultcode>ns0:Client</faultcode>
<faultstring>Cannot find dispatch method for {}updateObject</faultstring>
</ns0:Fault>
</S:Body>
</S:Envelope>
I am using below code to update list value.
<soapenv:Envelope >
<soapenv:Body>
<updateObject>
<request>
<requests>
<classIdentifier>EnvironmentalChangeOrder</classIdentifier>
<objectNumber>EC00097</objectNumber>
<data rowId=”0″>
<changeCategory xsi_type=”AgileListEntryType” attributeId=”1060″>
<selection>
<id/>
<apiName/>
<value>Rework Field</value>
</selection>
</changeCategory>
</data>
</requests>
</request>
</updateObject>
</soapenv:Body>
</soapenv:Envelope>
And i checked base id in java client which is same as i given above.
There could be many reasons for this error, I am not sure how to debug this in SoapUI. However you can try these to confirm if your request XML is correct. Try updating a text attribute like description of change or reason for change attribute and for updateObject tag set the >http://xmlns.agile.com/AgileObjects/Core/Business/V1. Can you also let me know the webservice URL which you are passing in SOAP UI.
Please find below test
Posted URL:http://domainname:7001/CoreService/services/BusinessObject
******************SOAP REQUEST*************************************
<soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:v1=”http://xmlns.oracle.com/AgileObjects/Core/Business/V1″>
<soapenv:Header/>
<soapenv:Body>
<v1:updateObject>
<request>
<requests>
<classIdentifier>EnvironmentalChangeOrder</classIdentifier>
<objectNumber>EC00097</objectNumber>
<data rowId=”0″>
<changeCategory attributeId=”1060″ xsi:type=”common:AgileListEntryType” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:common=”http://xmlns.oracle.com/AgileObjects/Core/Common/V1″>
<selection>
<id/>
<apiName>REWORK_FIELD</apiName>
<value>Rework Field</value>
</selection>
</changeCategory>
</data>
</requests>
</request>
</v1:updateObject>
</soapenv:Body>
</soapenv:Envelope>
**************SOAP RESPONSE************************************
<S:Envelope xmlns:S=”http://schemas.xmlsoap.org/soap/envelope/”>
<S:Body>
<ns0:updateObjectResponse xmlns:ns0=”http://xmlns.oracle.com/AgileObjects/Core/Business/V1″>
<response>
<messageId xsi:nil=”true” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”/>
<messageName xsi:nil=”true” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”/>
<statusCode>FAILURE</statusCode>
<exceptions>
<id>0</id>
<exception>
<identifier>
<id>6164786</id>
<name>EnvironmentalChangeOrder</name>
<displayName>EC00097</displayName>
</identifier>
<exceptionId>60086</exceptionId>
<message xsi:nil=”true” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”/>
<cause xsi:nil=”true” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”/>
</exception>
</exceptions>
</response>
</ns0:updateObjectResponse>
</S:Body>
</S:Envelope>
Hi Prasaat,
I am not able find jar file to invoke stub object.
I am using “com.oracle.webservices.wls.jaxws-wlswss-client.jar” but when i imported sample codes 9.3.5 of JAX-WS unable to find implementation jar specific to import
“com.agile.ws.schema.common.v1.jaxws.”
Please let me know implementation jar file specific to above package with a downloadable URL.
axis.jar, commons-discovery.jar, jaxrpc.jar, saaj.jar, wsdl4j.jar, commons-logging.jar .. if you use eclipse-> Web service client you will get those jars directly from eclipse.
I am trying to invoke standard web services from standalone code .
But below import package jar file is missing which is specific to agile 9.3.5 web services.
can you please let me know where can download implementation jar file specific to below mentioned import package.
import com.agile.ws.schema.common.v1.jaxws.AgileExceptionListType;
import com.agile.ws.schema.common.v1.jaxws.AgileExceptionType;
import com.agile.ws.schema.common.v1.jaxws.AgileMoneyType;
import com.agile.ws.schema.common.v1.jaxws.AgileWarningListType;
import com.agile.ws.schema.common.v1.jaxws.AgileWarningType;
import com.agile.ws.schema.common.v1.jaxws.ResponseStatusCode;
import com.agile.ws.schema.metadata.v1.jaxws.AgileConvertCurrencyRequestType;
import com.agile.ws.schema.metadata.v1.jaxws.AgileConvertCurrencyResponseType;
import com.agile.ws.schema.metadata.v1.jaxws.ConvertCurrencyRequestType;
import com.agile.ws.schema.metadata.v1.jaxws.ConvertCurrencyResponseType;
import com.agile.ws.service.metadata.v1.jaxws.AdminMetadataPortType;
import com.agile.ws.service.metadata.v1.jaxws.AdminMetadataService;