cockeyed
Member
- Joined
- Nov 21, 2008
- Messages
- 14
- Programming Experience
- 1-3
Hi,
I am struggling with invoking a Web Service in Vb.Net 2008 pro.
I have been given the WSDL file and and all classes have been created one I establisheda connection to the Web Reference.
My problem lies that the Types used are based on a class of mixed types.
Below is a snap shot of my reference.vb
So if I wanted to use the Rackscanrequest method, the parameter to be passed would be of type awbLabel which is a custom type. I am assuming I would have to create a class of tat type.
Can anyone provide me guidance or a generic sample code for how to get me strated?
thanking you all in advance for any effort.
I am struggling with invoking a Web Service in Vb.Net 2008 pro.
I have been given the WSDL file and and all classes have been created one I establisheda connection to the Web Reference.
My problem lies that the Types used are based on a class of mixed types.
Below is a snap shot of my reference.vb
VB.NET:
<System.Diagnostics.DebuggerStepThroughAttribute(), _
System.ComponentModel.DesignerCategoryAttribute("code"), _
System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=true, [Namespace]:="http://aircargo.ups.ca/scanner/xsd")> _
Partial Public Class RackScanRequest
Private labelField As AwbLabel
Private rackLocationField As String
'''<remarks/>
Public Property label() As AwbLabel
Get
Return Me.labelField
End Get
Set
Me.labelField = value
End Set
End Property
Public Property rackLocation() As String
Get
Return Me.rackLocationField
End Get
Set
Me.rackLocationField = value
End Set
End Property
End Class
<System.Diagnostics.DebuggerStepThroughAttribute(), _
System.ComponentModel.DesignerCategoryAttribute("code"), _
System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://aircargo.ups.ca/scanner/xsd")> _
Partial Public Class AwbLabel
Private awbNumberField As AwbNumber
Private awbLabelNumberField As Integer
'''<remarks/>
Public Property awbNumber() As AwbNumber
Get
Return Me.awbNumberField
End Get
Set
Me.awbNumberField = value
End Set
End Property
<System.Diagnostics.DebuggerStepThroughAttribute(), _
System.ComponentModel.DesignerCategoryAttribute("code"), _
System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://aircargo.ups.ca/scanner/xsd")> _
Partial Public Class AwbNumber
Private awbAirlineCodeField As String
Private awbSerialNumberField As Integer
'''<remarks/>
Public Property awbAirlineCode() As String
Get
Return Me.awbAirlineCodeField
End Get
Set
Me.awbAirlineCodeField = value
End Set
End Property
So if I wanted to use the Rackscanrequest method, the parameter to be passed would be of type awbLabel which is a custom type. I am assuming I would have to create a class of tat type.
Can anyone provide me guidance or a generic sample code for how to get me strated?
thanking you all in advance for any effort.