on 06-24-2008 2:52 PM
Hi All,
Below is my coding for adding a new cardcode,cardname(add BP) in business partners...but in runtime i get a error like "Invalid Document Object"..here is my coding for adding a NEW Business partner.can u help me to solve this problem..
<WebMethod()> Public Function QueryBP(ByVal SessionID As String, ByVal CardCode As String,ByVal CardName As String) As Xml.XmlDocument
Dim DISnode As SBODI_Server.Node
Dim strSOAPans, strSOAPcmd As String
Dim xmlDoc As Xml.XmlDocument
xmlDoc = New Xml.XmlDocument
DISnode = New SBODI_Server.Node
strSOAPcmd = "<?xml version=""1.0"" encoding=""UTF-16""?>" & _
"<env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
"<env:Header>" & _
"<SessionID>" & CStr(SessionID) & "</SessionID>" & _
"</env:Header><env:Body><dis:AddObject xmlns:dis=""http://www.sap.com/SBO/DIS"">" & _
"<Object>BusinessPartners</Object>" & _
"<CardCode>" & CardCode & "</CardCode>" & _
"<CardName>" & CardName & "</CardName>" & _
"</dis:AddObject></env:Body></env:Envelope>"
strSOAPans = DISnode.Interact(strSOAPcmd)
xmlDoc.LoadXml(strSOAPans)
Return (RemoveEnv(xmlDoc))
End Function
Dear
you should use
<Object>oBusinessPartners</Object>
we have samples by default under
C:\Program Files\SAP\SAP Business One SDK\Samples\DI Server\VB.NET\DIServerBP\
Best Regards,
Xiaodan AN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.