| |
|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
| xsi:type generation |
« View previous topic :: View next topic » |
| Author |
Message
|
| GeneRK4 |
Posted: Tue Jan 06, 2015 8:47 pm Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Tried to create the exact same output as expected.But still same error is thrown
Trace node output:
( ['SOAPRoot' : 0x7880dc50]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x72812150]
(0x03000000:NameValue):MessageSet = '' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 1208 (INTEGER)
(0x03000000:NameValue):Transactional = FALSE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2015-01-07 04:25:15.863' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'SOAP-AXIS2' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = 'text/xml;charset=UTF-8' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name ):HTTPInputHeader = ( ['WSINPHDR' : 0x756d1050]
(0x03000000:NameValue):X-Original-HTTP-Command = 'POST http://localhost:2444/services/hr/resourcing/dataexchange/dataexport_v1_0 HTTP/1.1' (CHARACTER)
(0x03000000:NameValue):Accept-Encoding = 'gzip,deflate' (CHARACTER)
(0x03000000:NameValue):Content-Type = 'text/xml;charset=UTF-8' (CHARACTER)
(0x03000000:NameValue):SOAPAction = '"http://services/hr/resourcing/dataexchange/dataexport_v1_0/DataExchange"' (CHARACTER)
(0x03000000:NameValue):Content-Length = '494' (CHARACTER)
(0x03000000:NameValue):Host = 'localhost:2444' (CHARACTER)
(0x03000000:NameValue):Connection = 'Keep-Alive' (CHARACTER)
(0x03000000:NameValue):User-Agent = 'Apache-HttpClient/4.1.1 (java 1.5)' (CHARACTER)
(0x03000000:NameValue):X-Remote-Addr = '127.0.0.1' (CHARACTER)
(0x03000000:NameValue):X-Remote-Host = '127.0.0.1' (CHARACTER)
(0x03000000:NameValue):X-Server-Name = 'localhost' (CHARACTER)
(0x03000000:NameValue):X-Server-Port = '2444' (CHARACTER)
)
(0x01000000:Folder):SOAP = ( ['SOAP' : 0x7270fac0]
(0x01000000:Folder):Body = (
(0x03000102:NamespaceDecl)xmlns:xsi = 'http://www.w3.org/2001/XMLSchema-instance' (CHARACTER)
(0x03000102:NamespaceDecl)xmlns:urn1 = 'urn:sobject.enterprise.soap.sforce.com' (CHARACTER)
(0x03000102:NamespaceDecl)xmlns:urn = 'urn:enterprise.soap.sforce.com' (CHARACTER)
(0x01000000:Folder )urn:enterprise.soap.sforce.com:upsert = (
(0x03000000:PCDataField)urn:enterprise.soap.sforce.com:externalIDFieldName = 'Vacancy_Reference__c' (CHARACTER)
(0x01000000:Folder )urn:enterprise.soap.sforce.com:sObjects = (
(0x03000100:Attribute )http://www.w3.org/2001/XMLSchema-instance:type = 'urn1:Requisition__c' (CHARACTER)
(0x03000000:PCDataField)urn:sobject.enterprise.soap.sforce.com:Car_Allowance__c = 'Ferrari' (CHARACTER)
)
)
)
)
)
ESQL Output:
| Code: |
<NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/">
<NS1:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:urn1="urn:sobject.enterprise.soap.sforce.com" xmlns:urn="urn:enterprise.soap.sforce.com">
<urn:upsert>
<urn:externalIDFieldName>Vacancy_Reference__c</urn:externalIDFieldName>
<urn:sObjects xsi:type="urn1:Requisition__c">
<urn1:Car_Allowance__c>Ferrari</urn1:Car_Allowance__c>
</urn:sObjects>
</urn:upsert>
</NS1:Body>
</NS1:Envelope> |
Expected output
| Code: |
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:urn1="urn:sobject.enterprise.soap.sforce.com">
<soapenv:Body>
<urn:upsert>
<urn:externalIDFieldName>Vacancy_Reference__c</urn:externalIDFieldName>
<urn:sObjects xsi:type="urn1:Requisition__c">
<urn1:Car_Allowance__c>Fleet Car</urn1:Car_Allowance__c>
</urn:sObjects>
</urn:upsert>
</soapenv:Body>
</soapenv:Envelope> |
Error thrown
cvc-complex-type.2.4.e: Unexpected element. Element "urn1:Car_Allowance__c" is not one of the choices.[/u] |
|
| Back to top |
|
 |
| kimbert |
Posted: Wed Jan 07, 2015 1:58 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
Please - can you take the time to
- insert some [c o d e] tags in that. It is very hard to read otherwise.
- format the two pieces of XML so that they are easy to compare.
Until you do those things, I don't see why we should take our time to try to assist you. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
| Back to top |
|
 |
| GeneRK4 |
Posted: Wed Jan 07, 2015 5:30 pm Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
| kimbert wrote: |
Please - can you take the time to
- insert some [c o d e] tags in that. It is very hard to read otherwise.
- format the two pieces of XML so that they are easy to compare.
Until you do those things, I don't see why we should take our time to try to assist you. |
I have made all namespaces to urn and urn1 so that it matches with expected output..Sorry if I have still not provided much readability.I will take into account for the future posts... |
|
| Back to top |
|
 |
| GeneRK4 |
Posted: Wed Jan 07, 2015 5:32 pm Post subject: |
|
|
Master
Joined: 08 Jul 2013 Posts: 220
|
Hi all,
This has been fixed now...
The issue we have found was,in SOAPRequest node,binding option was something different than the operation we wanted under which Car_Allowance_c is present.
Once,we have changed the binding operation in the SOAPRequest node property,its all working.
Hence there is no issue with urn or ESQL code.
Thanks for all your help  |
|
| Back to top |
|
 |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|