Question

Value of type '1-dimensional array of Service' cannot be converted to '1-dimensional array of RogersWebService.Service'

Asked by: mathieu_cupryk

Error      1      Value of type '1-dimensional array of Service' cannot be converted to '1-dimensional array of RogersWebService.Service' because 'Service' is not derived from 'RogersWebService.Service'.      C:\Inetpub\wwwroot\WAM\App_Code\TransactionWAM.vb      162      57      C:\...\WAM\

Imports System.Text
Imports System.Collections.Generic
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Imports System.Web.Services.Protocols
Imports System.Xml
 
 
Public Class TransactionWAM
    Inherits Transaction
 
 
    Private Enum WAMTransactionType As Integer
 
        Activation = 201
        Deactivation = 211
        ProfileChange = 501
        SIMQuery = 601
 
        RatePlanChange = 701
 
    End Enum
 
    ''' <summary>
    ''' A rogers activation will be data only or voice enabled, at the SIM features level
    ''' </summary>
    ''' <remarks></remarks>
    Private Enum SIMDataOnlyStatus As Integer
 
        HasDataOnly = 1
        HasVoiceEnabled = 2
        Issue_NoKeySAFFeature = 3
        Issue_ConflictingSAFFeature = 4
 
    End Enum
 
 
 
    'Fields
    Private strSQL As String = ""
 
    Private m_simID As Integer = 0
    Private m_imei As String = "222222222222228"
    Private m_subscriberName As String = "KORE Telematics"
    Private m_msisdn As String = ""
    Private m_simNumber As String = ""
    Private m_pricePlanCode As String = ""
    Private m_simDataOnlyStatus As Integer = 0
    Private m_contractType As String = ""
    Private m_pricePlanCodeID As Integer = 0
 
    Private arrServices As New ArrayList()
    Private serviceList As List(Of Service) = New List(Of Service)
 
    Private m_batch As SAGBatch
 
 
 
 
    Public Property Batch() As SAGBatch
        Get
            Return m_batch
        End Get
        Set(ByVal Value As SAGBatch)
            m_batch = Value
        End Set
    End Property
 
 
 
    'Constructor
    Sub New(ByVal intTransactionID As Integer, ByVal intSIMTypeID As Integer, _
                        ByVal sagBatch As SAGBatch)
 
        MyBase.New(intTransactionID, intSIMTypeID)
        Batch = sagBatch
 
        Dim intResult As Integer = 0
        Dim strSQL As String = ""
 
        Dim dr As SqlClient.SqlDataReader
 
        'Get all the transaction info we need, which now includes the ContractType
        strSQL = ""
        strSQL = strSQL & "SELECT "
        strSQL = strSQL & "tbl_sag_transaction.SIMID, "
        strSQL = strSQL & "tbl_sag_transaction.[SIM_Number], "
        strSQL = strSQL & "tbl_sag_transaction.MSISDN, "
        strSQL = strSQL & "tbl_sag_transaction.TransactionTypeID, "
        strSQL = strSQL & "ISNULL(tbl_sims.PricePlan, 0) AS PricePlanCodeID, "
        strSQL = strSQL & "tbl_billing_contracts.ContractType "
        strSQL = strSQL & "FROM tbl_sag_transaction "
        strSQL = strSQL & "JOIN tbl_sims "
        strSQL = strSQL & "ON tbl_sag_transaction.SIMID = tbl_sims.SIMID "
        strSQL = strSQL & "JOIN tbl_locations "
        strSQL = strSQL & "ON tbl_sims.LocationID = tbl_locations.LocationID "
        strSQL = strSQL & "JOIN tbl_billing_contracts "
        strSQL = strSQL & "ON tbl_locations.LocationID = tbl_billing_contracts.LocationID "
        strSQL = strSQL & "WHERE tbl_sag_transaction.TransactionID = " & Me.TransactionID.ToString
        dr = helperData.GetSQLDataReader(strSQL, "sid")
 
        'A note about Price Plans.
        'when you are activating a SIM the correct price plan is calculated based on contract type & features.
        'when this is a general request bulk feature change (501) the SIM is already active on a price plan
        'which does not change.
 
        If dr.Read Then
 
            TransactionTypeID = Convert.ToInt32(dr("TransactionTypeID"))
 
            m_simID = Convert.ToInt32(dr("SIMID"))
            m_simNumber = dr("SIM_Number").ToString()
            m_msisdn = dr("MSISDN").ToString()
 
            m_contractType = dr("ContractType").ToString
            m_pricePlanCodeID = dr("PricePlanCodeID").ToString
 
 
            'Create Services from tbl_sag_commands
            'Dim arrServices As New ArrayList()
            arrServices = GetServices(TransactionID)
 
            'Dim serviceList As List(Of Service) = New List(Of Service)
            If arrServices.Count > 0 Then
                For i As Integer = 0 To arrServices.Count - 1
                    If Not arrServices(i) Is Nothing AndAlso CStr(arrServices(i)) <> "" Then
                        Dim service As New Service()
                        service.code = Trim(arrServices(i).ToString())
                        serviceList.Add(service)
                    End If
                Next
            End If
 
        End If 'If dr.Read
        dr.Close()
 
    End Sub
 
    Public Sub ActivateWAMTransaction()
 
        Dim intResult As Integer = 0
        Dim status As New TransactionStatus()
        Dim errorCode As String = ""
        Dim errorMessage As String = ""
        Dim sagStatus As String = ""
        Dim transactionState As String = ""
 
 
        Try 'SoapException handler 
 
            Dim Obj As New RogersWebService.Wam
            Obj.Url = "127.0.0.1"
            status = Obj.activateSubscriber(TransactionID.ToString(), _
                                                        Me.m_msisdn, _
                                                        EquipmentType.GSM, _
                                                        Language.English, _
                                                        Me.m_simNumber, _
                                                        Me.m_imei, _
                                                        Me.m_subscriberName, _
                                                        Me.m_pricePlanCode, _
                                                        serviceList.ToArray())
 
        Catch sExp As SoapException
            status.status = TransactionStatusStatus.apperror
            Dim xmlDoc As New XmlDocument()
            xmlDoc.LoadXml(sExp.Detail.InnerXml)
            Dim elemList As XmlNodeList = xmlDoc.GetElementsByTagName("wam:englishMessage")
            If elemList.Count > 0 Then errorMessage = elemList(0).InnerText
            elemList = xmlDoc.GetElementsByTagName("wam:errorCode")
            If elemList.Count > 0 Then errorCode = elemList(0).InnerText
        End Try
 
    End Sub
 
    Private Function GetServices(ByVal transactionID As Integer) As ArrayList
        Dim arr As New ArrayList()
        Dim sql As String = "select [Service] from tbl_sag_command where transactionid=" & transactionID.ToString() & " "
        Dim dr As SqlDataReader = helperData.GetSQLDataReader(sql, "sid")
        If dr.Read() Then
            Dim services As String = dr("Service").ToString()
            For Each s As String In services.Split(Convert.ToChar(";"))
                arr.Add(s)
            Next
        End If
        dr.Close()
        Return arr
    End Function
 
End Class
--------------------------------------------------------------------------------------------------

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-08-24 at 09:17:45ID24677069
Topic

Microsoft Visual Basic.Net

Participating Experts
2
Points
500
Comments
11

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Erased C:\\Inetpub\wwwroot
    I have installed Windows 2000 Professional Edition at my computer. I know that C:\Inetpub\wwwroot simulates a webserver root which can host ASP pages and display them directly at Internet Explorer without uploading oages to the webserver and then view them by Internet. Unfort...
  2. converting Arraylist to array
    How to convert Array List to Array?Can anyone explain with an example? Thanks in advance
  3. value of 1-dimensional array of class1 cannot be conver…
    Hi, wht does this error mean value of type '1-dimensional array of class1 cannot be converted to value of 1dimensional array of class2 because class1 is not derived from class2. using vb.net/.net2.0 Thank you
  4. convert to array
    Hi, I have a question about convert a string to an arrary. I have a strin g, like: sPostCode = '2345w,4567n,3456k'. I need change those codes into an array (table of string). How can I do it? any inputs appreciated!

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ChaosianPosted on 2009-08-24 at 12:58:59ID: 25171889

Mathieu,

Could you please at least let us know what line of code fails? The partial exception you posted isn't helpful.

 

by: mathieu_cuprykPosted on 2009-08-24 at 17:21:35ID: 25173726

I have to create a test bed but it seems to fail

It fails on
  Try 'SoapException handler

            Dim Obj As New WAM

            Obj.Url = "http://localhost:2365/WAM.asmx"
            status = RogersWebService.activateSubscriber(TransactionID.ToString(), _
                                                        Me.m_msisdn, _
                                                        EquipmentType.GSM, _
                                                        Language.English, _
                                                        Me.m_simNumber, _
                                                        Me.m_imei, _
                                                        Me.m_subscriberName, _
                                                        Me.m_pricePlanCode, _
                                                        serviceList.ToArray())  --->

using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
 
namespace com.shoprogers.www
{
    /// <summary>
    /// Summary description for Wam
    /// </summary>
    [WebService(Namespace = "http://microsoft.com/webservices/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class Wam : System.Web.Services.WebService
    {
 
        public Wam()
        {
 
            //Uncomment the following line if using designed components 
           // InitializeComponent(); 
        }
        // You will not be able to see it using webservices, this is not what webservices do.
        // Keep in mind that webservices are a decoupling point, your objects that get sent over are "thin" objects i.e. 
        // they are data holders, they are not to contain 
        // functionality. What is actually happenning here is your object is being used to create the WSDL, 
        // the remote client is reading the WSDL and generating proxy objects for you based upon the WSDL you created, 
        // it is not using the same objects thast you created. This behavior is a trade off, since you have decoupled 
        // java clients etc can call your service through their own generated proxies but you have a level complexity 
        // when dealing with your own code.
        // If you need it to use the same objects that you created you would have to use remoting but at that point you 
        // have lost the point of decoupling for other environments.
               
        /// <summary>
        ///
        /// </summary>
        /// <param name="transactionId"></param>
        /// <param name="ctn"></param>
        /// <param name="equipmentType"></param>
        /// <param name="language"></param>
        /// <param name="sim"></param>
        /// <param name="imei"></param>
        /// <param name="subscriberName"></param>
        /// <param name="pricePlanCode"></param>
        /// <returns></returns>
        [WebMethod (Description="Perform an activateSubscriber for Rogers")]
        public TransactionStatus activateSubscriber(
         string transactionId,
         string ctn,
         SubscriberProfile.EquipmentType equipmentType,
         SubscriberProfile.Language language,
         string sim,
         string imei,
         string subscriberName,
         string pricePlanCode)
        // Service[] service
        {
             TransactionStatus TS = new TransactionStatus();
             TS.transactionId = "01234567890123456789";
             TS.englishMessage = "Activate Subscriber";
             TS.frenchMessage = "Bonjour Rogers";
             TS.errorDescription = "Error on Rogers";
             TS.status = TransactionStatus.TransactionStatusStatus.completed;
 
             return TS;
           
        }
 
 
 
        [WebMethod (Description="Perform a deactivateSubscriber for Rogers")]
        public TransactionStatus deactivateSubscriber(string transactionId, string ctn)
        {
            TransactionStatus TS = new TransactionStatus();
            TS.transactionId = "01234567890123456789";
            TS.englishMessage = "Deactivate Subscriber";
            TS.frenchMessage = "Francais";
            TS.errorDescription = "Error on Rogers";
            TS.status = TransactionStatus.TransactionStatusStatus.pending;
 
            return TS;
        }
 
        [WebMethod(Description = "Perform a modify Subscriber Services for Rogers")]
        [XmlInclude(typeof(Service))]
        public TransactionStatus modifySubscriberServices(
            string transactionId, 
            string ctn, 
            string pricePlanCode
          //  Service[] service
            ) 
        {
           
            TransactionStatus TS = new TransactionStatus();
            TS.transactionId = "01234567890123456789";
            TS.englishMessage = "Modify Subscriber";
            TS.frenchMessage = "Francais";
            TS.errorDescription = "Error on Rogers";
            TS.status = TransactionStatus.TransactionStatusStatus.apperror;
 
            return TS;
        }
 
 
    }
}

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:

Select allOpen in new window

 

by: CodeCruiserPosted on 2009-08-25 at 03:06:31ID: 25175932

I think the problem might be with types of the variable status and the return value of the method obj.activateSubscriber. What is the return type of this method?

But most probably, it is due to the fact that serviceList is an array of type service and the activateSubscriber is expecting an array of type RogersWebService.Service. So try changing this line

    Private serviceList As List(Of Service) = New List(Of Service)

to this

    Private serviceList As List(Of RogersWebService.Service) = New List(Of RogersWebService.Service)

 

by: mathieu_cuprykPosted on 2009-08-25 at 06:50:27ID: 25177564

Public Sub ExecuteWAMTransaction()

        Dim intResult As Integer = 0
        Dim status As New TransactionStatus()
        Dim errorCode As String = ""
        Dim errorMessage As String = ""
        Dim sagStatus As String = ""
        Dim transactionState As String = ""


        Try 'SoapException handler

            Dim Obj As New WAM

            Obj.Url = "http://localhost:2365/WAM.asmx"
            status = RogersWebService.activateSubscriber(TransactionID.ToString(), _
                                                        Me.m_msisdn, _
                                                        EquipmentType.GSM, _
                                                        Language.English, _
                                                        Me.m_simNumber, _
                                                        Me.m_imei, _
                                                        Me.m_subscriberName, _
                                                        Me.m_pricePlanCode, _
                                                        serviceList.ToArray())

        Catch sExp As SoapException
            status.status = TransactionStatusStatus.apperror
            Dim xmlDoc As New XmlDocument()
            xmlDoc.LoadXml(sExp.Detail.InnerXml)
            Dim elemList As XmlNodeList = xmlDoc.GetElementsByTagName("wam:englishMessage")
            If elemList.Count > 0 Then errorMessage = elemList(0).InnerText
            elemList = xmlDoc.GetElementsByTagName("wam:errorCode")
            If elemList.Count > 0 Then errorCode = elemList(0).InnerText
        End Try

    End Sub

 

by: mathieu_cuprykPosted on 2009-08-25 at 07:01:16ID: 25177664

The following is my Service.vb and ServiceParamater.vb.

Imports System
Imports System.Data
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports System.Xml.Serialization
 
Namespace com.shoprogers.www
    ''' <summary>
    ''' Summary description for Service
    ''' </summary>
    <Serializable()> _
    Public Class Service
        Private codeField As String = String.Empty
        Private parameterField As ServiceParameter() = Nothing
 
        Public Sub New()
            '
            ' TODO: Add constructor logic here
            '
        End Sub
        Public Sub New(ByVal code As String, ByVal parameter As ServiceParameter)
            Me.codeField = code
            Me.parameter(0).name = "name1"
 
            Me.parameter(0).value = "value1"
        End Sub
 
        '''<remarks/> 
        Public Property code() As String
            Get
                Return Me.codeField
            End Get
            Set(ByVal value As String)
                Me.codeField = value
            End Set
        End Property
 
        Public Property parameter() As ServiceParameter()
            Get
                Return Me.parameterField
            End Get
            Set(ByVal value As ServiceParameter())
                Me.parameterField = value
            End Set
        End Property
 
    End Class
End Namespace
 
--------------------------------------------------------------------
Imports System
Imports System.Data
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
 
Namespace com.shoprogers.www
 
    <Serializable()> Public Class ServiceParameter
 
        Private nameField As String = String.Empty
        Private valueField As String = String.Empty
 
        Public Sub ServiceParameter()
            '
            ' TODO: Add constructor logic here
            '
        End Sub
 
        Public Sub ServiceParameter(ByVal nameField As String, ByVal valueField As String)
            Me.nameField = nameField
            Me.valueField = valueField
        End Sub
 
        ''' <remarks/>
        Public Property Name()
            Get
                Return Me.nameField
            End Get
 
            Set(ByVal value)
                Me.nameField = value
            End Set
        End Property
 
        ''' <remarks/>
        Public Property Value()
            Get
                Return Me.valueField
            End Get
            Set(ByVal value)
                Me.valueField = value
            End Set
        End Property
    End Class
 
End Namespace
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:

Select allOpen in new window

 

by: CodeCruiserPosted on 2009-08-25 at 07:03:33ID: 25177689

Try changing this
Public Class Service

to
Public Class Service
           Inherits RogersWebService.Service

 

by: mathieu_cuprykPosted on 2009-08-25 at 07:06:56ID: 25177723

See attached file for error.

 

by: CodeCruiserPosted on 2009-08-25 at 07:13:00ID: 25177783

Beyond my understanding now because it requires understanding the whole project.

 

by: mathieu_cuprykPosted on 2009-08-25 at 07:28:42ID: 25177953

I am decoupling the project..

One web service and the web form appl to test.

See image.

 

by: mathieu_cuprykPosted on 2009-08-25 at 07:41:43ID: 25178078

The following operations are supported. For a formal definition, please review the Service Description.


--------------------------------------------------------------------------------

This web service does not conform to WS-I Basic Profile v1.1.
Please examine each of the normative statement violations below. Follow the recommendations to remedy it, or add setting to the <webServices> config section to turn off BP 1.1 conformance warnings for the entire vroot.

To turn off BP 1.1 conformance warnings for the entire vroot remove the 'BP1.1' value from the <conformanceWarnings> section of the configuration file of your application:

<configuration>
  <system.web>
    <webServices>
      <conformanceWarnings>
        <remove name='BasicProfile1_1'/>
      </conformanceWarnings>
    </webServices>
  </system.web>
</configuration>

SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of implementation guidelines that recommend how a set of core Web services specifications should be used together to develop interoperable Web services. For the 1.1 Profile, those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema.
Recommendation: Consider changing config settings in web.config file in your application or site root directory to enable SOAP 1.1 protocol for your Web service.


For more details on Basic Profile Version 1.1, see the Basic Profile Specification.


--------------------------------------------------------------------------------

This web service is using http://tempuri.org/ as its default namespace.
Recommendation: Change the default namespace before the XML Web service is made public.
Each XML Web service needs a unique namespace in order for client applications to distinguish it from other services on the Web. http://tempuri.org/ is available for XML Web services that are under development, but published XML Web services should use a more permanent namespace.

Your XML Web service should be identified by a namespace that you control. For example, you can use your company's Internet domain name as part of the namespace. Although many XML Web service namespaces look like URLs, they need not point to actual resources on the Web. (XML Web service namespaces are URIs.)

For XML Web services creating using ASP.NET, the default namespace can be changed using the WebService attribute's Namespace property. The WebService attribute is an attribute applied to the class that contains the XML Web service methods. Below is a code example that sets the namespace to "http://microsoft.com/webservices/":

C#

[WebService(Namespace="http://microsoft.com/webservices/")]
public class MyWebService {
    // implementation
}
Visual Basic

<WebService(Namespace:="http://microsoft.com/webservices/")> Public Class MyWebService
    ' implementation
End Class
C++

[WebService(Namespace="http://microsoft.com/webservices/")]
public ref class MyWebService {
    // implementation
};
For more details on XML namespaces, see the W3C recommendation on Namespaces in XML.

For more details on WSDL, see the WSDL Specification.

For more details on URIs, see RFC 2396.

Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
 
 
''' <summary>
''' Summary description for Wam
''' </summary>
<WebService([Namespace]:="http://microsoft.com/webservices/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.None)> _
Public Class WAM
    Inherits System.Web.Services.WebService
 
    Public Sub New()
 
        'Uncomment the following line if using designed components 
        ' InitializeComponent(); 
    End Sub
    ''' <summary>
    '''
    ''' </summary>
    ''' <param name="transactionId"></param>
    ''' <param name="ctn"></param>
    ''' <param name="equipmentType"></param>
    ''' <param name="language"></param>
    ''' <param name="sim"></param>
    ''' <param name="imei"></param>
    ''' <param name="subscriberName"></param>
    ''' <param name="pricePlanCode"></param>
    ''' <returns></returns>
    <WebMethod(Description:="Perform an activateSubscriber for Rogers")> _
    Public Function activateSubscriber( _
        ByVal transactionId As String, _
        ByVal ctn As String, _
        ByVal equipmentType As SubscriberProfile.EquipmentType, _
        ByVal language As SubscriberProfile.Language, _
        ByVal sim As String, _
        ByVal imei As String, _
        ByVal subscriberName As String, _
        ByVal pricePlanCode As String, _
        ByVal Service() As Service) As TransactionStatus
 
        Dim TS As New TransactionStatus()
        Dim SP As New SubscriberProfile()
        Dim serviceParmameter As New ServiceParameter()
 
 
        TS.transactionId = transactionId
        TS.englishMessage = "English"
        TS.frenchMessage = "Francais"
        TS.errorDescription = "Error on Rogers"
        TS.status = TransactionStatus.TransactionStatusStatus.completed
 
        SP.ctn = ctn
        ' SP.equipmentType = equipmentType
        SP.pricePlan = pricePlanCode
        ' SP.language = language
        SP.sim = sim
        SP.imei = imei
        SP.service = Service
 
 
        Return TS
    End Function
 
 
 
    '<WebMethod(Description:="Perform a deactivateSubscriber for Rogers")> _
    'Public Function deactivateSubscriber(ByVal transactionId As String, ByVal ctn As String) As TransactionStatus
    '    Dim TS As New TransactionStatus()
    '    TS.transactionId = "01234567890123456789"
    '    TS.englishMessage = "Deactivate Subscriber"
    '    TS.frenchMessage = "Francais"
    '    TS.errorDescription = "Error on Rogers"
    '    TS.status = TransactionStatus.TransactionStatusStatus.pending
 
    '    Return TS
    'End Function
 
    '<WebMethod(Description:="Perform a modify Subscriber Services for Rogers")> _
    'Public Function modifySubscriberServices(ByVal transactionId As String, ByVal ctn As String, ByVal pricePlanCode As String) As TransactionStatus
    '    '  Service[] service
 
    '    Dim TS As New TransactionStatus()
    '    TS.transactionId = "01234567890123456789"
    '    TS.englishMessage = "Modify Subscriber"
    '    TS.frenchMessage = "Francais"
    '    TS.errorDescription = "Error on Rogers"
    '    TS.status = TransactionStatus.TransactionStatusStatus.apperror
 
    '    Return TS
    'End Function
 
 
End Class
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:

Select allOpen in new window

 

by: mathieu_cuprykPosted on 2009-08-25 at 08:08:50ID: 31619739

still working on it.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...