A
acool
Why am I getting this error in my webservice?? I am making a call to this
webservice and passing in a string of XML and it bombs. Now when I run the
webservice and paste in the exact same XML it runs fine, what the heck is
going on and what path is it taking about. Error and XML are below:
-------------------------------
ERROR ---------------------------------------------------------
An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: System.Web.Services.Protocols.SoapException: Server
was unable to process request. ---> System.IO.PathTooLongException: The path
is too long after being fully qualified. Make sure path is less than 260
characters.
at System.IO.Path.nGetFullPathHelper(String path, Char[]
invalidPathChars, Char[] whitespaceChars, Char directorySeparator, Char
altDirectorySeparator, Char volumeSeparator, Boolean fullCheck, String&
newPath)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.Path.GetFullPath(String path)
at System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri)
at System.Xml.XmlTextReader..ctor(String url, XmlNameTable nt)
at System.Xml.XmlDocument.Load(String filename)
at ICRMService.FindAction(String document)
at ICRMService.PutXMLDocument(String document)
--- End of inner exception stack trace ---
-------------------------------
XML ---------------------------------------------------------
<message>
<message_id>message_id_1</message_id>
<message_timestamp>1999-09-09T00:00:00-00:00</message_timestamp>
<message_system>message_system_1</message_system>
<message_action>message_action_1</message_action>
<message_objecttype>message_objecttype_1</message_objecttype>
<message_objectid>message_objectid_1</message_objectid>
<message_filterobjecttype>message_filterobjecttype_1</message_filterobjectty
pe>
<message_filterobjectid>message_filterobjectid_1</message_filterobjectid>
<message_code>message_code_1</message_code>
<message_description>message_description_1</message_description>
- <objectxml>
- <account>
<accountcategorycode name="name_1">1</accountcategorycode>
<accountclassificationcode name="name_1">1</accountclassificationcode>
<accountid>accountid_1</accountid>
<accountnumber>accnum1</accountnumber>
<accountratingcode name="name_1">1</accountratingcode>
<address1_addresstypecode name="name_1">1</address1_addresstypecode>
<address1_city>address1_city_1</address1_city>
<address1_country>address1_country_1</address1_country>
<address1_county>address1_county_1</address1_county>
<address1_fax>address1_fax_1</address1_fax>
<address1_freighttermscode name="name_1">1</address1_freighttermscode>
<address1_latitude>1.0</address1_latitude>
<address1_line1>address1_line1_1</address1_line1>
<address1_line2>address1_line2_1</address1_line2>
<address1_line3>address1_line3_1</address1_line3>
<address1_longitude>1.0</address1_longitude>
<address1_name>address1_name_1</address1_name>
<address1_postalcode>address1_postalcode_</address1_postalcode>
<address1_postofficebox>address1_postofficeb</address1_postofficebox>
<address1_primarycontactname>address1_primarycontactname_1</address1_primary
contactname>
<address1_shippingmethodcode name="name_1">1</address1_shippingmethodcode>
<address1_stateorprovince>address1_stateorprovince_1</address1_stateorprovin
ce>
<address1_telephone1>address1_telephone1_1</address1_telephone1>
<address1_telephone2>address1_telephone2_1</address1_telephone2>
<address1_telephone3>address1_telephone3_1</address1_telephone3>
<address1_upszone>addr</address1_upszone>
<address1_utcoffset>1</address1_utcoffset>
<address2_addresstypecode name="name_1">1</address2_addresstypecode>
<address2_city>address2_city_1</address2_city>
<address2_country>address2_country_1</address2_country>
<address2_county>address2_county_1</address2_county>
<address2_fax>address2_fax_1</address2_fax>
<address2_freighttermscode name="name_1">1</address2_freighttermscode>
<address2_latitude>1.0</address2_latitude>
<address2_line1>address2_line1_1</address2_line1>
<address2_line2>address2_line2_1</address2_line2>
<address2_line3>address2_line3_1</address2_line3>
<address2_longitude>1.0</address2_longitude>
<address2_name>address2_name_1</address2_name>
<address2_postalcode>address2_postalcode_</address2_postalcode>
<address2_postofficebox>address2_postofficeb</address2_postofficebox>
<address2_primarycontactname>address2_primarycontactname_1</address2_primary
contactname>
<address2_shippingmethodcode name="name_1">1</address2_shippingmethodcode>
<address2_stateorprovince>address2_stateorprovince_1</address2_stateorprovin
ce>
<address2_telephone1>address2_telephone1_1</address2_telephone1>
<address2_telephone2>address2_telephone2_1</address2_telephone2>
<address2_telephone3>address2_telephone3_1</address2_telephone3>
<address2_upszone>addr</address2_upszone>
<address2_utcoffset>1</address2_utcoffset>
<businesstypecode name="name_1">1</businesstypecode>
<creditlimit>1.0</creditlimit>
<creditonhold name="name_1">0</creditonhold>
<customersizecode name="name_1">1</customersizecode>
<customertypecode name="name_1">1</customertypecode>
<description>description_1</description>
<donotbulkemail name="name_1">0</donotbulkemail>
<donotbulkpostalmail name="name_1">0</donotbulkpostalmail>
<donotemail name="name_1">0</donotemail>
<donotfax name="name_1">0</donotfax>
<donotphone name="name_1">0</donotphone>
<donotpostalmail name="name_1">0</donotpostalmail>
<emailaddress1>emailaddress1_1</emailaddress1>
<emailaddress2>emailaddress2_1</emailaddress2>
<emailaddress3>emailaddress3_1</emailaddress3>
<fax>fax_1</fax>
<ftpsiteurl>ftpsiteurl_1</ftpsiteurl>
<industrycode name="name_1">1</industrycode>
<marketcap>1.0</marketcap>
<name>Acc_name_12</name>
<numberofemployees>1</numberofemployees>
<ownerid type="1" dsc="1" name="name_1">ownerid_1</ownerid>
<ownershipcode name="name_1">1</ownershipcode>
<participatesinworkflow name="name_1">0</participatesinworkflow>
<paymenttermscode name="name_1">1</paymenttermscode>
<preferredcontactmethodcode name="name_1">1</preferredcontactmethodcode>
<revenue>1.0</revenue>
<sharesoutstanding>1</sharesoutstanding>
<shippingmethodcode name="name_1">1</shippingmethodcode>
<sic>sic_1</sic>
<statuscode name="name_1">1</statuscode>
<stockexchange>stockexchange_1</stockexchange>
<telephone1>telephone1_1</telephone1>
<telephone2>telephone2_1</telephone2>
<telephone3>telephone3_1</telephone3>
<territorycode name="name_1">1</territorycode>
<tickersymbol>tickersymb</tickersymbol>
<websiteurl>websiteurl_1</websiteurl>
<action>insert</action>
</account>
</objectxml>
</message>
webservice and passing in a string of XML and it bombs. Now when I run the
webservice and paste in the exact same XML it runs fine, what the heck is
going on and what path is it taking about. Error and XML are below:
-------------------------------
ERROR ---------------------------------------------------------
An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: System.Web.Services.Protocols.SoapException: Server
was unable to process request. ---> System.IO.PathTooLongException: The path
is too long after being fully qualified. Make sure path is less than 260
characters.
at System.IO.Path.nGetFullPathHelper(String path, Char[]
invalidPathChars, Char[] whitespaceChars, Char directorySeparator, Char
altDirectorySeparator, Char volumeSeparator, Boolean fullCheck, String&
newPath)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.Path.GetFullPath(String path)
at System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri)
at System.Xml.XmlTextReader..ctor(String url, XmlNameTable nt)
at System.Xml.XmlDocument.Load(String filename)
at ICRMService.FindAction(String document)
at ICRMService.PutXMLDocument(String document)
--- End of inner exception stack trace ---
-------------------------------
XML ---------------------------------------------------------
<message>
<message_id>message_id_1</message_id>
<message_timestamp>1999-09-09T00:00:00-00:00</message_timestamp>
<message_system>message_system_1</message_system>
<message_action>message_action_1</message_action>
<message_objecttype>message_objecttype_1</message_objecttype>
<message_objectid>message_objectid_1</message_objectid>
<message_filterobjecttype>message_filterobjecttype_1</message_filterobjectty
pe>
<message_filterobjectid>message_filterobjectid_1</message_filterobjectid>
<message_code>message_code_1</message_code>
<message_description>message_description_1</message_description>
- <objectxml>
- <account>
<accountcategorycode name="name_1">1</accountcategorycode>
<accountclassificationcode name="name_1">1</accountclassificationcode>
<accountid>accountid_1</accountid>
<accountnumber>accnum1</accountnumber>
<accountratingcode name="name_1">1</accountratingcode>
<address1_addresstypecode name="name_1">1</address1_addresstypecode>
<address1_city>address1_city_1</address1_city>
<address1_country>address1_country_1</address1_country>
<address1_county>address1_county_1</address1_county>
<address1_fax>address1_fax_1</address1_fax>
<address1_freighttermscode name="name_1">1</address1_freighttermscode>
<address1_latitude>1.0</address1_latitude>
<address1_line1>address1_line1_1</address1_line1>
<address1_line2>address1_line2_1</address1_line2>
<address1_line3>address1_line3_1</address1_line3>
<address1_longitude>1.0</address1_longitude>
<address1_name>address1_name_1</address1_name>
<address1_postalcode>address1_postalcode_</address1_postalcode>
<address1_postofficebox>address1_postofficeb</address1_postofficebox>
<address1_primarycontactname>address1_primarycontactname_1</address1_primary
contactname>
<address1_shippingmethodcode name="name_1">1</address1_shippingmethodcode>
<address1_stateorprovince>address1_stateorprovince_1</address1_stateorprovin
ce>
<address1_telephone1>address1_telephone1_1</address1_telephone1>
<address1_telephone2>address1_telephone2_1</address1_telephone2>
<address1_telephone3>address1_telephone3_1</address1_telephone3>
<address1_upszone>addr</address1_upszone>
<address1_utcoffset>1</address1_utcoffset>
<address2_addresstypecode name="name_1">1</address2_addresstypecode>
<address2_city>address2_city_1</address2_city>
<address2_country>address2_country_1</address2_country>
<address2_county>address2_county_1</address2_county>
<address2_fax>address2_fax_1</address2_fax>
<address2_freighttermscode name="name_1">1</address2_freighttermscode>
<address2_latitude>1.0</address2_latitude>
<address2_line1>address2_line1_1</address2_line1>
<address2_line2>address2_line2_1</address2_line2>
<address2_line3>address2_line3_1</address2_line3>
<address2_longitude>1.0</address2_longitude>
<address2_name>address2_name_1</address2_name>
<address2_postalcode>address2_postalcode_</address2_postalcode>
<address2_postofficebox>address2_postofficeb</address2_postofficebox>
<address2_primarycontactname>address2_primarycontactname_1</address2_primary
contactname>
<address2_shippingmethodcode name="name_1">1</address2_shippingmethodcode>
<address2_stateorprovince>address2_stateorprovince_1</address2_stateorprovin
ce>
<address2_telephone1>address2_telephone1_1</address2_telephone1>
<address2_telephone2>address2_telephone2_1</address2_telephone2>
<address2_telephone3>address2_telephone3_1</address2_telephone3>
<address2_upszone>addr</address2_upszone>
<address2_utcoffset>1</address2_utcoffset>
<businesstypecode name="name_1">1</businesstypecode>
<creditlimit>1.0</creditlimit>
<creditonhold name="name_1">0</creditonhold>
<customersizecode name="name_1">1</customersizecode>
<customertypecode name="name_1">1</customertypecode>
<description>description_1</description>
<donotbulkemail name="name_1">0</donotbulkemail>
<donotbulkpostalmail name="name_1">0</donotbulkpostalmail>
<donotemail name="name_1">0</donotemail>
<donotfax name="name_1">0</donotfax>
<donotphone name="name_1">0</donotphone>
<donotpostalmail name="name_1">0</donotpostalmail>
<emailaddress1>emailaddress1_1</emailaddress1>
<emailaddress2>emailaddress2_1</emailaddress2>
<emailaddress3>emailaddress3_1</emailaddress3>
<fax>fax_1</fax>
<ftpsiteurl>ftpsiteurl_1</ftpsiteurl>
<industrycode name="name_1">1</industrycode>
<marketcap>1.0</marketcap>
<name>Acc_name_12</name>
<numberofemployees>1</numberofemployees>
<ownerid type="1" dsc="1" name="name_1">ownerid_1</ownerid>
<ownershipcode name="name_1">1</ownershipcode>
<participatesinworkflow name="name_1">0</participatesinworkflow>
<paymenttermscode name="name_1">1</paymenttermscode>
<preferredcontactmethodcode name="name_1">1</preferredcontactmethodcode>
<revenue>1.0</revenue>
<sharesoutstanding>1</sharesoutstanding>
<shippingmethodcode name="name_1">1</shippingmethodcode>
<sic>sic_1</sic>
<statuscode name="name_1">1</statuscode>
<stockexchange>stockexchange_1</stockexchange>
<telephone1>telephone1_1</telephone1>
<telephone2>telephone2_1</telephone2>
<telephone3>telephone3_1</telephone3>
<territorycode name="name_1">1</territorycode>
<tickersymbol>tickersymb</tickersymbol>
<websiteurl>websiteurl_1</websiteurl>
<action>insert</action>
</account>
</objectxml>
</message>