Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello i seem to be having a strange "=" in my soap header i am sending this
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://webservice.mks.com/10/2/Integrity" xmlns:ns2="http://webservice.mks.com/10/2/Integrity/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<ns0:Body>
<ns1:createItem>
<arg0 Type="Issue">
<ns2:Username>username</ns2:Username>
<ns2:Password>password</ns2:Password>
<ns2:ItemField Name="project=/ZI/O/project.pj"/>
<ns2:ItemField Name="Summary=Quick Summary"/>
<ns2:ItemField Name="Description=Quick description"/>
<ns2:ItemField Name="Issue Type=Change Package"/>
</arg0>
</ns1:createItem>
</ns0:Body>
</SOAP-ENV:Envelope>
Hello Sinea,
Which "=" are you finding to be strange? Could you clarify what you need help with?
Regards,
Kael
Hi Kael,
I get the fault responce as <ns1:MKSException class="com.mks.api.response.ItemModificationException" id="124251" implication="Unable to create item." xmlns:ns1="http://webservice.mks.com/10/2/Integrity/fault">Could not save item: MKS124251: Field "Project": Value "/XXXXXXXX=" is not a valid project.</ns1:MKSException>
I have used the same code for my purpose and received the following error message
<ns1:MKSException class="com.mks.api.response.ItemModificationException" id="124251" implication="Unable to create item." xmlns:ns1="http://webservice.mks.com/10/2/Integrity/fault">Could not save item: MKS124251: Field "Project": Value "/ADC420HA10=" is not a valid project.</ns1:MKSException>
Hi @ptc-6234649,
I wrote code for the same thing on my machine and it's working perfectly. Please take a look over the below code just change the value as per your system and requirement :---
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:int="http://webservice.mks.com/10/2/Integrity" xmlns:sch="http://webservice.mks.com/10/2/Integrity/schema">
<soapenv:Header/>
<soapenv:Body>
<int:createItem>
<!--Optional:-->
<arg0 Type="Work Item">
<sch:Username>lntuser</sch:Username>
<sch:Password>lntlnt</sch:Password>
<!--Optional:-->
<sch:ItemField Name="Summary">
<!--You have a CHOICE of the next 14 items at this level-->
<sch:shorttext>
<!--You have a CHOICE of the next 2 items at this level-->
<sch:value>Created from web services</sch:value>
</sch:shorttext>
</sch:ItemField>
<sch:ItemField Name="Project">
<!--You have a CHOICE of the next 14 items at this level-->
<sch:project>
<!--You have a CHOICE of the next 2 items at this level-->
<sch:value>/ASPICE_Demo</sch:value>
</sch:project>
</sch:ItemField>
</arg0>
</int:createItem>
</soapenv:Body>
</soapenv:Envelope>
Please let me know in case you need any help.
Vielen Dank
Kapil Jain
Thanks , this works.
Regards
Hari
Hi @HariC,
Accept the above as a solution so others may take it as reference.
Vielen Dank
Kapil Jain