function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cloud-developmentcloud-development 

Webservice Error - The string '' is not a valid AllXsd value

All,

 

I'm fairly new to webservices in Apex, so hoping someone might be able to help me understand an error I'm getting.

 

I have used WSDL2Apex to generate some classes, and am able to use them to build up a request, which I'm trying to send.

 

However I'm getting the following response error - "The string '' is not a valid AllXsd value".

 

My XML request below looks ok to me. Is the error on the Salesforce side, or is the service genuinely having a problem with parsing the request? I've seen various posts where this error can mean problems parsing dates, but I get the same error even when removing all the dates.

 

Hoping you can help!

 

Cheers,

Andrew

 

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Header /><env:Body><PlaceOrders xmlns="http://ws.bbtrack.com/OrderInterface/"><Orders><OrderType><Version>1</Version><CustomerInformation><Name>Test</Name><ReferralCode>blah</ReferralCode><Password>blah</Password></CustomerInformation><Reference>a0XF00000032rZPMAY</Reference><OrderDate>2011-12-13T10:20:03.262Z</OrderDate><CRD>2011-12-13T10:20:03.262Z</CRD><DeliveryMethod><Carrier>Royal Mail</Carrier><Service>FCP</Service><DespatchDate /></DeliveryMethod><DeliveryParty><Party><Ident>test123</Ident><FirstName>test</FirstName><LastName>test</LastName><Telephone>0131</Telephone><CompanyName>test account</CompanyName><EmailAddress>test@me.com</EmailAddress></Party><Address><PremisesName>test account</PremisesName><AddressLine2>test</AddressLine2><AddressLine3>test</AddressLine3></Address></DeliveryParty><SupplierPartList><SupplierPart><SupplierPartType><PartName>585</PartName><PartSku>585</PartSku><PartCount>1</PartCount><Configuration><ConfigurationItem><ConfigurationItemType><ConfigName>SERVICE ID</ConfigName><Value>12345</Value></ConfigurationItemType><ConfigurationItemType><ConfigName>IP BASE</ConfigName><Value>62.43.56.66</Value></ConfigurationItemType><ConfigurationItemType><ConfigName>INETNUM</ConfigName><Value>62.43.56.66 - 62.43.56.66</Value></ConfigurationItemType><ConfigurationItemType><ConfigName>HOSTNAME</ConfigName><Value>TEST</Value></ConfigurationItemType><ConfigurationItemType><ConfigName>PASSWORD</ConfigName><Value>TEST</Value></ConfigurationItemType><ConfigurationItemType><ConfigName>ORDER TYPE</ConfigName><Value>Reseller</Value></ConfigurationItemType></ConfigurationItem></Configuration></SupplierPartType></SupplierPart></SupplierPartList></OrderType></Orders></PlaceOrders></env:Body></env:Envelope>