XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Posttop
sudhakar sharmaSubject: face problem in base64binary data
Author: sudhakar sharma
Date: 21 Dec 2005 03:33 AM
Hi ivan this is my vb code..i face problem when i send byte array...plz help me in this..when i send byte array ..it shows garbage data on server..plz help me for the same

Dim Connector As SoapConnector30
Dim Serializer As SoapSerializer30
Dim Reader As SoapReader30
Dim ResultElm As IXMLDOMElement
Dim FaultElm As IXMLDOMElement

Dim END_POINT_URL As String
Dim SoapAction As String
Dim CALC_NS As String

Dim byBuf(10) As Byte ' Byte array to store data
END_POINT_URL = "http://192.168.96.36/sample1.asmx?WSDL"
SoapAction = "http://tempuri.org/"
CALC_NS = "http://tempuri.org/"

byBuf(0) = 65 ' Initialize the byte array
byBuf(1) = 66
byBuf(2) = 67
byBuf(3) = 68
byBuf(4) = 69
byBuf(5) = 70
Set Connector = New HttpConnector30
Connector.Property("EndPointURL") = END_POINT_URL
Connector.Connect

' binding/operation/soapoperation
Connector.Property("SoapAction") = SoapAction & Method
Connector.BeginMessage

'Preapare the SOAP Request
Set Serializer = New SoapSerializer30
Serializer.Init Connector.InputStream

Serializer.StartEnvelope
Serializer.StartBody

Serializer.StartElement Method, CALC_NS ' Setting Method name

Serializer.StartElement "a", CALC_NS
Serializer.WriteBuffer 4, byBuf(0) 'This data is not pass correctly in server
Serializer.EndElement
Serializer.EndElement
Serializer.EndBody
Serializer.EndEnvelope
Connector.EndMessage
'Reading Webservice Response
Set Reader = New SoapReader30
Reader.Load Connector.OutputStream


thanks
sudhakar sharma

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.