soap soriana
Publicado: Lun Jun 27, 2011 6:32 pm
me estoy volviendo loco con esto!!! ayuda por favor
me surgio la necesidad de enviar a soriana la addenda via el web service
segun yo lo estoy enviando pero o me sale error 500 internal error o error 415 Unsupported Media Type
estoy programando en vb.net 2010
esto es lo que estoy enviando
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope targetNamespace="http://schemas.xmlsoap.org/soap/envelope"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope"
xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body><RecibeCFD xmlns="http://www.sci-grupo.com.mx/">
<XMLCFD>cfdcompleto con certificado</XMLCFD></RecibeCFD></soap:Body></soap:Envelope>
lo estoy enviando en esta funcion
Private Function post(ByVal WebserviceURL As String, ByVal SOAP As String) As XmlDocument
Using wc As New WebClient()
Dim retXMLDoc As New XmlDocument
wc.Headers.Add("Content-Type", "application/soap+xml; charset=utf-8")
retXMLDoc.LoadXml(wc.UploadString(WebserviceURL, SOAP))
Return retXMLDoc
End Using
End Function
alguien tiene una idea??? lo agradeceria mucho ..
me surgio la necesidad de enviar a soriana la addenda via el web service
segun yo lo estoy enviando pero o me sale error 500 internal error o error 415 Unsupported Media Type
estoy programando en vb.net 2010
esto es lo que estoy enviando
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope targetNamespace="http://schemas.xmlsoap.org/soap/envelope"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope"
xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body><RecibeCFD xmlns="http://www.sci-grupo.com.mx/">
<XMLCFD>cfdcompleto con certificado</XMLCFD></RecibeCFD></soap:Body></soap:Envelope>
lo estoy enviando en esta funcion
Private Function post(ByVal WebserviceURL As String, ByVal SOAP As String) As XmlDocument
Using wc As New WebClient()
Dim retXMLDoc As New XmlDocument
wc.Headers.Add("Content-Type", "application/soap+xml; charset=utf-8")
retXMLDoc.LoadXml(wc.UploadString(WebserviceURL, SOAP))
Return retXMLDoc
End Using
End Function
alguien tiene una idea??? lo agradeceria mucho ..