cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Webservice Strange "=" at webservice message

ptc-6234649
1-Visitor

Webservice Strange "=" at webservice message

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>

6 REPLIES 6

Hello Sinea,

Which "=" are you finding to be strange? Could you clarify what you need help with?

Regards,
Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
HariC
3-Newcomer
(To:KaelLizak)

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> 

HariC
3-Newcomer
(To:HariC)

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>

kjain-2
15-Moonstone
(To:ptc-6234649)

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

HariC
3-Newcomer
(To:kjain-2)

Thanks , this works.

 

Regards

Hari

kjain-2
15-Moonstone
(To:HariC)

Hi @HariC,

 

Accept the above as a solution so others may take it as reference.

 

Vielen Dank

Kapil Jain

Announcements


Top Tags