Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8722001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:18:57+00:00 2026-06-13T07:18:57+00:00

Here is the code I received from a customer on how they access their

  • 0

Here is the code I received from a customer on how they access their web service from PHP. I will need to do the same but from VB.Net. There is no WSDL available and this is all the code I have from them. Is this even possible?

$Client = new SoapClient(NULL, array(‘location’ => ‘http://ipaddress/onyx/api/soap_api.php’, ‘uri’ => ‘not-used’));

print_r($Client->qty_available(‘124044’));

/* Output:
Array
(
[01] => Array
(
[available] => 333
[name] => Alliance
)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:18:58+00:00Added an answer on June 13, 2026 at 7:18 am

    If the data being returned is in a custom format (I’m guessing this from the question) then the default web service stuff might not work in .Net, you’ll have to manually get the data from the request and parse it based on what the service returns. If it is in a standard XML, you may have to get the raw data once just to create the WSDL yourself.

    Here is some code from a console app we used to test one of our .Net web services. Basically its making the request and returning the raw data. You could run this once to get the data that is returned, and then write the code to parse the data. I replaced our values with the ones from your question.

    Module Module1
    
    Sub Main()
    
    
        Dim x = System.Net.HttpWebRequest.Create("http://ipaddress/onyx/api/soap_api.php")
    
        x.Method = "POST"
    
        Dim MemStream As New System.IO.MemoryStream
    
        Dim ReqData As New IO.StreamWriter(MemStream, System.Text.Encoding.UTF8)
        ReqData.Write(My.Resources.Test2)
        ReqData.Flush()
    
        x.ContentLength = MemStream.Length
        x.ContentType = "text/xml; charset=utf-8"
        x.Headers.Add("SOAPAction", "not-used")
    
        Dim WebReq = x.GetRequestStream
        WebReq.Write(MemStream.GetBuffer, 0, MemStream.Length)
        WebReq.Flush()
        WebReq.Close()
    
        Dim Res As System.Net.HttpWebResponse = x.GetResponse
    
        If Res.StatusCode = Net.HttpStatusCode.OK Then
            Dim SR = New IO.StreamReader(Res.GetResponseStream)
            Console.WriteLine(SR.ReadToEnd)
        Else
            Console.WriteLine(Res.StatusCode & ", " & Res.StatusDescription)
        End If
    
        Console.ReadLine()
    
    End Sub
    
    End Module
    

    The `My.Resources.Test2′ is the pre-formatted request data we were using. Here is a possible example for your situation, it may not be correct.

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <qty_available>
             124044
        </qty_available>
    </soap:Body>
    </soap:Envelope>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here my code, I need to insert into mysql database I have mysql,php,android 1)
thanks to the suggestions I received here , I cleaned up my code and
Here is code from MSDN . I don't understand why the work isn't just
I have a language file downloaded from a web service located in my resources
Here's the failing code: require_once Mail.php; $host = mail.domain.com; $username = USER; $password =
Here's my code: <?php $sock = fsockopen(localhost, 6667); fwrite($sock, NICK PHP_thang\r\n); fwrite($sock, USER fikeh
I have a CSS file and a PHP file that I received from an
I'm trying to parse a JSONArray received from php. I see from my log
Page is refreshed every 5 seconds. Images that received from .php file are appended
I need help in converting a file received from a jquery ajax to byte

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.