# How to make laminas soap headar

**URL:** <https://discourse.laminas.dev/t/how-to-make-laminas-soap-headar/3815>\
**Category:** Components & MVC\
**Tags:** laminas-soap\
**Created:** [December 12, 2024, 8:35pm UTC](https://discourse.laminas.dev/t/how-to-make-laminas-soap-headar/3815 "2024-12-12T20:35:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beyazsapka](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/beyazsapka/32/1772_2.png) [@beyazsapka](https://discourse.laminas.dev/u/beyazsapka)\
**Post date:** [December 12, 2024, 8:35pm UTC](https://discourse.laminas.dev/t/how-to-make-laminas-soap-headar/3815/1 "2024-12-12T20:35:59Z")

</div>

Hello, we want to create the soap server that we wrote before in Laravel. wsdl structure of old soap server  
request xml

```auto
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 <soap:Header>
 <User xmlns="http://webservice.segem.org.tr/Segem.asmx">
 <username>string</username>
 <password>string</password>
 </User>
 </soap:Header>
 <soap:Body>
 <CandidateEducationCertificateAsk xmlns="http://webservice.segem.org.tr/Segem.asmx">
 <request>
 <TRIdentityNo>string</TCIdentityNo>
 <QueryType>string</QueryType>
 <CourseCode>string</CourseCode>
 <CourseName>string</CourseName>
 </request>
 </CandidateEducationCertificateAsk>
 </soap:Body>
</soap:Envelope>

```

response xml

```auto
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
 <AdayEgitimSertifikaSorResponse xmlns="http://webservice.segem.org.tr/Segem.asmx">
 <CandidateEducationCertificateAskResult>
 <CandidateInformationResponse>
 <DocumentNo>string</DocumentNo>
 <DocumentDate>string</DocumentDate>
 <Year>string</Year>
 <TcIDNo>string</TcIDNo>
 <NameSurname>string</NameSurname>
 <TrainingName>string</TrainingName>
 <CourseName>string</CourseName>
 <SuccessStatus>string</SuccessStatus>
 <ExamDate>string</ExamDate>
<Level>string</Level>
<Link>string</Link>
<BransId>int</BransId>
<ErrorCode>int</ErrorCode>
<ErrorMessage>string</ErrorMessage>
</AdayInformationResponse>
</AdayEgitimCertificateSorResult>
</AdayEgitimCertificateSorResponse>
</soap:Body>
</soap:Envelope>

```

How to set the information in the wsdl header tag with laminas-soap server.

How can a similar wsdl structure be printed to the screen with the get method?

Thanks.
