delphi 2006 ile xml formatinda parametre isteyen bir web servisine rio bilesenin ilgili ozelligini ezerek < ve > karakterlerini tekrar normal işaretlerle değiştirip gonderiyorum ama yinede hata almaktan kurtulamadim.
orjinal hali bu
Kod: Tümünü seç
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<RequestSalesConditions xmlns="http://tempuri.org/">
<CustomerCode>1000000</CustomerCode>
<UserName>xxxx</UserName>
<Password>yyyy</Password>
<warehouseCode>99</warehouseCode>
<reqSalesConditions><?xml version="1.0" encoding="utf-8"?>
<reqsalesconditions>
<reqsalesconditionitem>
<companyproductid>
8783
</companyproductid>
<quantity>
1
</quantity>
</reqsalesconditionitem>
</reqsalesconditions>
</reqSalesConditions>
</RequestSalesConditions>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
DoBeforeExecute olayinda bu sekilde degistirip gonderiyorum ama sonuc yine hatali oluyor...
Kod: Tümünü seç
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<RequestSalesConditions xmlns="http://tempuri.org/">
<CustomerCode>1000000</CustomerCode>
<UserName>xxxx</UserName>
<Password>yyyyy</Password>
<warehouseCode>99</warehouseCode>
<reqSalesConditions><?xml version="1.0" encoding="utf-8"?>
<reqsalesconditions>
<reqsalesconditionitem>
<companyproductid>
8783
</companyproductid>
<quantity>
1
</quantity>
</reqsalesconditionitem>
</reqsalesconditions>
</reqSalesConditions>
</RequestSalesConditions>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
hata mesaji da su sekilde
Server was unable to read request. --> There is an error in XML document (9,

. --> The XML declaration is unexpected. Line 9, position 29.
yukarida bahsettigin bilesenin adresi duruyor mu?