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

  • SEARCH
  • Home
  • 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 6580303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:00:38+00:00 2026-05-25T16:00:38+00:00

I am writing a web service client in PHP. web service is developed ij

  • 0

I am writing a web service client in PHP. web service is developed ij java using axis. Client proxy is generated using wsdl2php tool. Proxy code include the following code

class ValidateDetails {
  public $elements; // ArrayOf_apachesoap_Element
  public $pipeName; // string
}

and the parameters are set and service is called using the following code

$xml = '<elements> <some xml here />    </elements>';
$xmlElement = new DOMElement('elements', $xml, '');

$details = new ValidateDetails();
$details->elements[0] =  $xmlElement;
$details->pipeName = 'mypipe';


$response = new ValidationResult();
$response = $client->validate($details);

However the SoapRequest object does not contain the nested xml inside the element node. It looks like this

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://build.nomos.com" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns3="urn:CompilationService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:validate>
<details xsi:type="ns3:ValidateDetails">

<elements SOAP-ENC:arrayType="ns2:Element[1]" xsi:type="ns3:ArrayOf_apachesoap_Element">
<item xsi:type="SOAP-ENC:Struct"/>
</elements>


<pipeName xsi:type="xsd:string">mypipe</pipeName>
</details></ns1:validate></SOAP-ENV:Body></SOAP-ENV:Envelope> 

I am unable to understand how to populate the elements field with the correct xml. Please suggest what is this ArrayOf_apachesoap_Element datatype and how can i populate this parameter.

  • 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-05-25T16:00:38+00:00Added an answer on May 25, 2026 at 4:00 pm

    Apparently there is no solution for such kind of data type conversions, or at least i am not aware of this datatype. try to use standard data types such as string, if you have access to the host web service

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a C# client that calls a web service written in Java
I am writing php client for .Net web service which uses ws.* specification. In
I'm writing a PHP client to a C#/WCF web service. The parameters for some
I'm writing a web-service for Android. The client side will be coded in JAVA
So I'm writing a Ruby client for a SOAP web service, and I've figured
I am writing a web service in Java, and I am trying to figure
I'm writing a smallish web service in Ruby using Sinatra. Access to pretty much
I am writing an app that’s a very simple web service client. I have
I'm writing a JAXWS-RI client that must call a .NET Web Service that is
I'm writing both client and server code using WCF, where I need to know

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.